How to find an ID by some descriptive attribute?

Please consider this situation:
* Two tables: EMP and DEPT (ie. Employees and Departments)
* A ViewObject for EMP
* - attributes Id (PK), DeptId (FK) and DeptName
* - Of course the query for this VO contains a join between the tables EMP and DEPT.
* A datapanel:
* - A JTextField, bound to DeptName
* - A JButton, bound to a DeptId and DeptName LOV
Here's a small screenie: http://members.home.nl/arnovdk/upload/EmpName.PNG
The question is, how can I lookup the appropriate DeptId after filling in a CORRECT DeptName into the textfield? Where do I look for this kind of functionality?
Anybody? :)
Thanks in advance.

Please consider this situation:
* Two tables: EMP and DEPT (ie. Employees and Departments)
* A ViewObject for EMP
* - attributes Id (PK), DeptId (FK) and DeptName
* - Of course the query for this VO contains a join between the tables EMP and DEPT.
* A datapanel:
* - A JTextField, bound to DeptName
* - A JButton, bound to a DeptId and DeptName LOV
Here's a small screenie: http://members.home.nl/arnovdk/upload/EmpName.PNG
This enhancement is logged for JClient and is marked for implementation for a future release.
The question is, how can I lookup the appropriate DeptId after filling in a CORRECT DeptName into the textfield? Where do I look for this kind of functionality?To get the functionality now, you may:
1. create a second FinderViewObject instance for the same VO.
2. create a ViewCriteria for the viewobject (createViewCriteria)
3. add a viewcritiera row with value for DeptName attribute as the value that was typed into the textfield. If you want this to include search/wild char kind of logic you could also set the value as "LIKE "+textfield.getText() and let the user type in wildchar (* or %).
4. apply the viewcriteria on the finder VO and execute the finder VO.
5. get the first row from finder VO and if a row is fetched, get it's key.
6. find a row with that key in the original Lov VO and set the currency to that row.
(If you only want the LovVO to display just the matching rows, you could even set the viewcriteria on the same VO rather than create a new finder VO).
Anybody? :)
Thanks in advance.

Similar Messages

  • How to find optimal multi splits for numerical attributes in Decision Tree

    Hi experts,
    I would like to know how to find optimal multi splits for numerical attributes
    in Decision Tree Learning.
    For splitting categorical attributes, gini and gain index are used and the splits that
    produce the best gain are selected.
    However, in case of numerical attributes
    how do you find the best splits?????
    Please help me !!

    Yordan's suggestion is correct, though the documentation is a bit outdated.
    You can use the single parameter + sweeper mode or define your own custom ranges in the BDT module with the Parameter Range setting
    Regards,
    aK

  • How to find a specific function's description?

    Hi,
    I'm now looking at xperf stack trace, I would like to know the description of a specific function. For example, I don't know what does RtlUserThreadStart() function do. How to find such information. I tried to search the function name on MSDN, but nothing
    came up.
    thank you!
    Ah_Chao|| MCSE,VCP,EMCSAe

    could anyone show me some lights on this?
    thanks in advanced!
    Ah_Chao|| MCSE,VCP,EMCSAe

  • My i phone is lost..how to find it...some one stolen it

    How to find my stolen phone.
    I have IMEI no.
    I m from india,so Find my i phone all wont work

    Remove your IMEI number.  That's irrelevant, and you can't track an iPhone that way anyways.  Plus, you just revealed personal information to the public.  Bad idea.
    Contact local law enforcement and your wireless carrier.  Not sure why you couldn't use Find My iPhone, since it works anywhere there's wi-fi or a cellular service.

  • How to find String associated with some long value.

    My requirement is to know the String associated with the long value, for ex 23423423 is having some value like 'skljflsjf'. Can any body findout soln for the same.
    Thanks
    ~ Chethangowda.

    My requirement is to know the String associatedwith
    the long value, for ex 23423423 is having somevalue
    like 'skljflsjf'. Can any body findout soln forthe
    same.
    Hum... I'm not 100% sure, but it seems the answeris:
    dgjldkgjfkljg
    Please, don't thank me before you confirm thething.
    Regards.Oooohhhh! That explains it! I guess I must've missed
    the part where he said he wants it translated to
    trollish. How stupid of me.You're absolutely not to blame... to be honest, if I had not read the OP 3-4 times carefully, I would not have found the solution.

  • How to find history of changes of organization attributes in OIM 11G?

    Hello.
    I need to find fistory of all changings in organization attributes, chould you help me to find, what table can i use for it?
    I use OIM 11G and oracle database 11.2.0.

    Hello, Thank you for your answer.
    I mean modification of an organization such as changing of the organization name, status, etc. As i understand your previous answer, there is no table that keeps such information. Is it right?
    If it is right, how can I find it?
    Should I make any triggers or can i find informations in another way?

  • How to find if a particular context node attribute is changed.

    Hi,
    When a screen is opened, the context node attribs has some values.  On some event, i wanted to check if one particular attribute in the context node has changed.  Is it possible to figure this out.
    (ps note that I need not find if any change has happened to the entire table but only one column (attribute) of the node.  Note that the node has cardinality 0...n.  So there are multiple possible values)
    Thanks in advance.
    regards,
    suresh.

    Hi,
    If you use the [Context change log|http://help.sap.com/saphelp_nw2004s/helpdata/en/ae/f95e42ff93c153e10000000a1550b0/frameset.htm]
    and loop over the result table, looking for a certain attribute name and node name,
    you'll get all the changes of that attribute, for all elements in that node.
    grtz,
    Koen

  • How to find routine in transports to which Infosource/DS it belongs to?

    Hi,
    Please let me know how to find a routine of some info source in list of transports to which Info source it belongs to.

    HI,
    You can find this through Transport connection.Just drag the concerned IS into right hand side then All objects under that IS will be displayed.
    Tarak

  • How to find Opening Balance for Cash Book

    Hello Friends,
    I am Creating one Report for Cash Book.(Means : For Perticuler GL Account)
    I have no idea how to find Opening Balance for some Perticuler Date.
    Ex.
         Current date: 07/06/2007
        and i want to find Opening Balance on 26/05/2007
    i have Function for Calculating Opening Balance,                                                                               
    Group No: 3006             Business Object General Ledger Account  
    BAPI_GL_ACC_EXISTENCECHECK     Check existence of G/L account                  
    BAPI_GL_ACC_GETBALANCE     Closing balance of G/L account for chosen year  
    BAPI_GL_ACC_GETCURRENTBALANCE  Closing balance of G/L acc for curr year
    BAPI_GL_ACC_GETPERIODBALANCES  Posting period balances for each G/L account    
    but they show current opening balance, and i want for perticulaer Date..
             How to find Opening Balance for Cash Book
    please Help me out
    Thanks
    Gaurav Tripathi

    Hi Maruthi,
       Opening balance for a cutomer for a given period, u need to first find closing balance of that customer in the previous period. For eg. Suppose u want to find opening balance for customer 'A' for month of Nov'06, then U have to find wot was his closing balance in at end of Oct'06. Hope this solves u r problem

  • I have multiple iPhoto libraries w/ duplicates in several. How can I consolidate and find the dupes? Some photos are versions of the original.

    I have multiple iPhoto libraries w/ duplicates in several. How can I consolidate and find the dupes? Some photos are versions of the original. On my iMac, I also have many folders containing some of the same photos. My computer is used for both personal and business purposes. My libraries should be separated, one for each.

    To merge libraries use iPhoto Library Manager - http://www.fatcatsoftware.com/iplm/ -  or Aperature
    To find duplicates within an iPhoto library use iPhoto Library Manager - http://www.fatcatsoftware.com/iplm/ - 
    Photos that are not in an iPhoto library can be imported telling iPhoto not to import duplicates (an imperfect procews) and then IPLM can find the duplicates
    As to keeping seperate libraries - only you can do that - IPLM can move photos between libraries for you but only you can know which photos should be in which library
    LN

  • Hello hi, i just won't to ask, if there has been any changes on how to find a stolen phone, did some one come up with a fare and good solution. as it is not fare at all when some one could use it for free and there is a lot of things could be done to this

    hello hi, i just won't to ask, if there has been any changes on how to find a stolen phone, did some one come up with a fare and good solution, new Apps. as it is not fare at all when some one could use it for free and there is a lot of things could be done to this condition, no one seem to care,
    i have a story about my sister, am talking on her behalf, she got stolen her phone at a caffee when she just come from a horeble exam, she was very mad and having haedace for not doing well at the exam, i ask her if we could have coffee before we go home, once she sate; while i was getting the coffee for her, some one snicked to her pocket and took the phone, immidatly she feelt it and went on to searching, but nathing was hopefull. what makes it more heart braking is that she worked day and night just to buy the phone and pay for her books and so on as a student. she use to work 16 houres a day before she had to start school. 8 houres in one place and then to the other place. and she was always demanding for more houres to work; one day her boss saw her on her other job and she was serprised to see her and saied OHhh my God Milly if you work like this, i wonder if you servive, how could you also ask for more houres, My sis had to do it she has no parents or any thing, well the phone was taken after only two months of having it. the sad thing is she stile dream having it even though she can't think of buying againe. well me i have tryed a lot of things but i know some were out there there is a solution for people like this, it is not always fare for some one who has payed up to 800 to just loose his ......  
    Thnks

    I'm sorry, but your sister, unless she had already turned on the "Find my iPhone" feature and the person who took the phone has not disabled it, is out of luck. She should report the theft to local police authorities, including the serial number of her iPhone. While her experience is unfortunate, there are good reasons why Apple cannot do anything else about it.
    I hope she gets her phone back.
    Best of luck.

  • HOW TO  FIND OUT TABLE DESCRIPTION FROM JDBC?

    HOW WILL FIND OUT TABLE DESCRIPTION FROM JDBC?

    Have a look at ResultSetMetaData
    getColumnCount()
    getColumnName(int)
    getColumnTypeName(int)
    getColumnDisplaySize(int)
    ***Annie***

  • How to find out the IBU of the logges in user with some relationship?

    Hi,
    How to find out the IBU of the logges in user with some relationship?
    Regards,
    Jaya

    Hi Jaya,
    I am not sure if i understood you correctly. Do you want to find the corresponding account of logged in User? If yes, then you can use the below FM:-
      CALL FUNCTION 'BP_CENTRALPERSON_GET'
        EXPORTING
          IV_USERNAME         = im_usr_name
        IMPORTING
          EV_BU_PARTNER_GUID  = lv_partner_guid
        EXCEPTIONS
          NO_CENTRAL_PERSON   = 1
          NO_BUSINESS_PARTNER = 2
          NO_ID               = 3
          OTHERS              = 4.
    Thanks and Regars,
    Rohit

  • How to find out the description for the given field?

    Hi All,
    How to find out the description for the given field?
    I mean ETTYP  Desription is VTEXT. This we can find in TVEPT  Table. So, How canwe find this?
    Thanks in Advance
    Sri...

    Hi  Avi,
    If i want to disply the  fields like   AUART and 'Description of AUART',
    Suppose based on my query i will take AUART from T184 table. And the description of AUART is available in TVAKT table.
    my question is if i have given T184-AUART  and how do u find out AUART Description ?(How do u know which table is having Description of AUART)?
    Thanks in Advance
    Sri...

  • Trying to find out how to edit artwork, keywords, titles, and descriptions

    Trying to find out how to edit artwork, keywords, titles, and descriptions for my own video podcast that I have created for the iTunes store. My podcast shows on the first page in the itunes store (podcasts) for "forex" "forex training" and "forex education" under the name "fastpips", however I can't seem to find out how to change the title, for each podcast, the description, and keywords. I also want to add artwork to my podcast. I know how to do it under options for my own iTunes on my personal computer, but don't know how to edit it for others to see in the store itself. Thanks so much for any advice. By the way, I upload all my video podcasts to iTunes via ScreenCast.com I'm not sure if this will help, but here is the domain for the screencast files: http://www.screencast.com/users/ForexProFund/folders/FastPips.com%20Forex%20Trad ing%20and%20Forex%20Education

    I have a similar question, I would like to edit the artwork for EACH episode in the podcast, as well as have one artwork for the entire podcast series. Any suggestions? This is a podcast that I've created -- I did the same thing for a TV Show where I was able to do custom artwork for each episode, but not one single artwork for the entire series. Does anyone have suggestions of how i should proceed?
    Recap:
    One image for entire Podcast Series (or TV show)
    Different Set of Images for each episode in Podcast. (Understand how to do this in TV show)
    Thanks!

Maybe you are looking for