Skip to Content
author's profile photo Former Member
Former Member

Retrieval problem

in my application i am having check box and edit(the style type) in data objects i need to display som etexts on thos edit and those texts are there in my sql and in the dataobject i have a query like this

SELECT auth.c_name,

auth.auth ,

substring( auth.auth, 1 ,1) AS COLUMN_0 ,

( select "Fn" from key5932 where "keyyy" ='0' ) as index0,

FROM auth

where auth.c_name = :a_name

here "auth" and "Fn" are the two tables and only table"auth" has been selected in this dataobject and i am getting data from"auth"

and "index0" is the name of edit and text which must shown on the edit is taking from table "Fn" but those are not coming properly.

and there is code lyk

dw_security.retrieve(data) here "data is from "auth" and there is retrievel argument (a_name )in the object which is from "auth"

my problem is i am not getting values from table "fn"

fn pos edit.jpg (145.0 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 07, 2016 at 06:12 AM

    Delna,

    Your naming conventions here are... unusual.... and your explanation is.... first draft...😈

    You say "Fn" is a table... what is "keyyy" then? In your sub-select.

    dw_security.retrieve(data)


    This indicates that a retrieval takes place in ItemChanged event somewhere?


    Suggest you spend a little bit of time explaining what you are trying to do. Tidy up the typos prehups.


    Lars

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 07, 2016 at 05:52 PM

    Delna,

    What is the datatype of the keyyy column? Are you sure it's a string?

    Do you get any result when you run the subselect from outside of the DW, e.g. SQL Developer?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 07, 2016 at 08:41 PM

    I hope some problem with your query. try to run in database painter or backend and check you are getting value or not.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.