How can I access the Attribute Values from the Search Region

Hi all,
I have a table which contains Company id, department id, and PositonId. For a particular Company and Department there may be multiple records.
I have to pupulate a table which contains the position and other details that comes under a particular Department and Position based on the selection in the Three comboBoxes.
Also I have to populate a select many Shuttle to add new postions and records under a particular Department.
I created a query panel *(Search Region)* for the serch and a table to display the data. That is working fine.
Now the issue is I am using a view criteria to populate the shuttle with two bind variables ie, DepartmentId and CompanyId.
If the serach will return a resuktant set in the table it will also pupulate the correct records, otherwise ie, if the if the serch result is empty the corresponding iterator and the attribute is setting as null.
SO I want to access the attribute values from the Search Region itsef to populate the shuttle.
I don't know how can I access the data from the Search Region.
Please Help.
Regards,
Ranjith

you could access the parameters entered in search region by the user as follows:
You can get handle to the value entered by the user using queryListener method in af:query.
You can intercept the values entered as described
public void onQueryList(QueryEvent queryEvent) {
// The generated QueryListener replaced by this method
//#{bindings.ImplicitViewCriteriaQuery.processQuery}
QueryDescriptor qdes = queryEvent.getDescriptor();
//get the name of the QueryCriteria
System.out.println("NAME "+qdes.getName());
List<Criterion> searchList = qdes.getConjunctionCriterion().getCriterionList();
for ( Criterion c : searchList) {
if (c instanceof AttributeCriterion ) {
AttributeCriterion a = (AttributeCriterion) c;
a.getValues();
for ( Object o : a.getValues()){
System.out.println(o.toString());
//call default Query Event
invokeQueryEventMethodExpression("#{bindings.ImplicitViewCriteriaQuery.processQuery}",queryEvent);
public void onQueryTable(QueryEvent queryEvent) {
// The generated QueryListener replaced by this method
//#{bindings.ImplicitViewCriteriaQuery.processQuery}
QueryDescriptor qdes = queryEvent.getDescriptor();
//get the name of the QueryCriteria
System.out.println("NAME "+qdes.getName());
invokeQueryEventMethodExpression("#{bindings.ImplicitViewCriteriaQuery.processQuery}",queryEvent);
private void invokeQueryEventMethodExpression(String expression, QueryEvent queryEvent){
FacesContext fctx = FacesContext.getCurrentInstance();
ELContext elctx = fctx.getELContext();
ExpressionFactory efactory = fctx.getApplication().getExpressionFactory();
MethodExpression me = efactory.createMethodExpression(elctx,expression, Object.class, new Class[]{QueryEvent.class});
me.invoke(elctx, new Object[]{queryEvent});
Thanks,
Navaneeth

Similar Messages

  • I upgraded to the new IOS, but lost data and apps. When I try and restore the only backup I see is the one made AFTER the lost data. How can I access an older backup from the cloud?

    I upgraded to the new IOS, but lost data and apps. When I try and restore the only backup I see is the one it made AFTER the lost data. How can I access an older backup from the cloud?

    Why don't you talk to apple and find out if backup exists? That conversation with apple will stop your guessing.

  • How Can I get multi column values from dynamic search help?

    Hi Gurus;
    I'm using dynamic search help in my program.
    I want to get multi column values from search help. But I dont know solution for this issue.
    I'm using F4IF_INT_TABLE_VALUE_REQUEST FM.
    How Can I get multi column values from dynamic search help?
    Thanks.

    Believe it or not, the same FM worked for me in a dynpro. I will try to explain here how it works in custom screen and then you can do your work for other screens or program types. I am not going to write my actual work but will explain in general.
    I have 4 fields (FLD1, FLD2, FLD3, FLD4) and i made the search based on FLD2 and when user click on a line (could be any field), then this would bring the line on to the screens.
    There are like 3 steps.
    You have your value_tab for my fields FLD1, FLD2, FLD3 and FLD4. This is just the data that we pass into the FM. (data: IT_VALTAB type table of ZVAL_TABLE)
    Next map the screen fields into an internal table (data: It_dynpfld type table of dselc ). I also have other internal tables defined  (just to keep it straight, i will be putting here) data:  It_return type standard table of ddshretval.
    Next step is to call the function module. Make sure you have values in IT_VALTAB.
    call function 'F4IF_INT_TABLE_VALUE_REQUEST'
    exporting
            retfield        = 'FLD2'
            value_org       = 'S'
          tables
            value_tab       = It_VALTAB
            return_tab      = It_return
            dynpfld_mapping = It_dynpfld
          exceptions
            parameter_error = 1
            no_values_found = 2
            others          = 3.
        if sy-subrc <> 0.
          message id sy-msgid type sy-msgty number sy-msgno
          with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        else.
          perform get_selected_fields tables It_return.
        endif.
    The code within the perform GET_SELECTED_FIELDS  - We need to map the result fields after user selects it. The code goes like this. This is step is to update the dynpro fields.
    I need a internal table as well as a work area here. like,
    data: lt_fields type table of dynpread,
            la_fields type dynpread.
      field-symbols: <fs_return> type ddshretval.
    so fill out LT_FIELDS from the IT_RETURN table
    loop at lt_return assigning <fs_return>.
        la_fields-fieldname = <fs_return>-retfield.
        la_fields-fieldvalue = <fs_return>-fieldval.
        append la_fields to lt_fields.
        clear: la_fields.
      endloop.
    Call the FM to update the dynpro
    call function 'DYNP_VALUES_UPDATE'
        exporting
          dyname               = sy-repid
          dynumb               = '1002' "This is my screen number. You could use 1000 for selection screen (hope so)
        tables
          dynpfields           = lt_fields
        exceptions
          invalid_abapworkarea = 1
          invalid_dynprofield  = 2
          invalid_dynproname   = 3
          invalid_dynpronummer = 4
          invalid_request      = 5
          no_fielddescription  = 6
          undefind_error       = 7
          others               = 8.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    good luck

  • How can I read an ID-value from the LMS and insert this into an URL?

    Hi
    Right now I am struggling with a little problem. Hopefully anyone here knows the answer. For the latest course I am building (Captivate 6), it is necessary that at one point the course reads an ID-value from the LMS. After that, this ID should be inserted into an URL.
    To be more precisely: the ID must be read (getValue) from cmi.archive_id and inserted into an URL like that: http://.../archive.php?action=pdf&objectID=ARCHIVE_ID.
    Unfortunately I am more of a designer und less of a javascript-maestro (well...I am a javascript-noob to be precisely), therefore I am pretty clueless how to do that. I tried a simple executed action (run Javascript: cpEIGetValue('cmi.archive_id'); and after that open URL http://.../archive.php?action=pdf&objectID=ARCHIVE_ID), but...well...that didn't work.
    Any ideas?
    Thanks a lot in advance

    Think you'll find help looking at Jim Leichliter's website:
    http://captivatedev.com/
    He has great tutorials about JavaScript and also a widget that allows to enter a variable in URL's
    Lilybiri

  • How can i access my icloud files from the finder?

    I have tried dragging the icloud icon from the toolbar of safari to the toolbar of a finder window without success.  There are files from apps I would like to save on my cloud that do not natively support iCloud. 
    Thanks in advance for your help.
    -Fricaseed

    The Safari iCloud icon is for iCloud tabs which syncs all of your tabs in Safari between all of your iOS devices and Macs. So basically while you were dragging the iCloud icon into Finder, you were doing nothing. Also iCloud only saves information and files from certain applications such as Reminders, Notes, Messages, Safari, TextEdit, etc. If there are apps that do not natively support iCloud you cannot save their files to iCloud because Apple does not have a feature that can save any file from any app on your Mac. Sorry to tell you this.
    Hope this helps,
    - Daniel 

  • How can I access a shared calendar from the web ?

    Hi !
    I use OSX SL, iCal 4.0.4, MobileMe.
    When I share an ical calendar, I can not access it from the web. I can share it with other ical users, but can not find the correct url to access it from Safari. I have been searching the net and find suggestions, but all of them is about using the url stated in the share-dialog. When I share a calendar, there is no url for web access.
    Hope someone can help.
    Sveino

    There is a method for publishing a MobileMe calendar to a web page (as can still be done with an 'On My Mac' calendar, though of course that won't sync to other devices).
    The method is almost a hack, and depends on what appears to be a bug in iCal, so there is no guarantee that it will work, or continue to work, or won't cause problems. Also it appears that once published the calendar cannot be removed from the web page, even if the original is deleted.
    With those caveats in mind, please see this web page:
    http://homepage.mac.com/rfwilmut/notes/icalpublish.html
    Note that there is a simpler method, involving exporting your MobileMe calendar as an .ics file, re-importing it as an 'On My Mac' calendar, and publishing it in the usual way. However of course it won't update if you update the MobileMe version, and if you make it the only version then of course it won't sync to MobileMe. It's one or the other, or use the hack described above.

  • How can I access SCXI gain settings from the niconfig.daq file using Labview 6.1?

    I'm using NT, Labview 5.0 and NI-DAQI 6.8.1. also LV 6.1 w/NI-DAQ 6.9.2 and would like labview to determine the current SCXI gain settings. How can I parcel the ni-config.daq file into text?

    Hi,
    niconfig.daq is a binary configuration file and cannot be parced into a text file; the format of the data stored in it is not available.
    Regards,
    RamziH.

  • How can i get the all values from the Property file to Hashtable?

    how can i get the all values from the Property file to Hashtable?
    ok,consider my property file name is pro.PROPERTIES
    and it contain
    8326=sun developer
    4306=sun java developer
    3943=java developer
    how can i get the all keys & values from the pro.PROPERTIES to hashtable
    plz help guys..............

    The Properties class is already a subclass of Hashtable. So if you have a Properties object, you already have a Hashtable. So all you need to do is the first part of that:Properties props = new Properties();
    InputStream is = new FileInputStream("tivoli.properties");
    props.load(is);

  • How can I access my iCloud account on the web from my phone

    how can I access my iCloud account on the web from my phone
    iPhone 5 iOS 8.3
    I have iCloud turned on, location services on, find my phone works but when I try to access iCloud via Safari on the phone it takes me to a page Apple.com,
    iCloud then three options
    set up iCloud on my phone (i have)
    Install Find my phone, it is installed and it works from my MBP
    or install find my friends, I don't need that I have no friends.
    my calendars and contacts and bookmarks and all are all sync'd and working on the phone, but i thought if I typed in iCloud.com on the phone in Safari I would go to my iCloud web page that looks like this on my Mac.
    Is that NOT how iCloud should/would look on my phone via Safari?
    This is maybe a dumb question after 3+ year of iPhone'ing
    thank you for clarifying or helping me to understand
    jojoguitar_mmn_usa

    I've been playing with a Galaxy here at work and here's what I've found so far - please feel free to jump in and suggest alternative methods to configure or access the various icloud components.
    So the original Q: Can you access your icloud account on Android?
    Not entirely: the website can't be used from an android browser (not properly - even with Dolphin HD and posing as different browsers it won't load correctly.  So Find my iphone is out, so is the address book or looking at your e-mail or calendar just in a browser window
    I was able to setup my e-mail using the IMAP settings published here:
    http://support.apple.com/kb/HT4864
    Be sure to setup the account manually - and note if you have trouble using SSL try TLS (that worked for me)
    Address book is a no go so you'll have to use iTunes to sync all your contacts over to Gmail - if you still have an iPad it means managing contacts in two places though .  Same goes for your calendar - transfer it to Gmail and forget about iCloud's calendar.  Nice instructions here: http://howto.cnet.com/8301-11310_39-20064060-285/how-to-switch-from-iphone-to-an droid/
    iWork is an Apple proprietary bit so don't expect much there.
    So in my case, if I'm really going to make the switch to a Galaxy from my iPhone it really means I'm going to have to switch to using google as the backend.  The timing to swap over to a galaxy/android phone is not the greatest - given that I'd have to give up my Apple addiction (syncing photos and itunes and losing access to my device tracking).  Plus I still have an iPad and a mac and like living in the Apple ecosystem.  I think I'll wait and see what the new iPhone looks like before I commit

  • How can I access my music library from a laptop on the road, as if my PC is not active? I tunes is installed on both PC and Home Sharing is enabled on both devices.

    How can I access my music library from a laptop on the road, as if my PC is not active? I tunes is installed on both PC and Home Sharing is enabled on both devices.

    The key constraint for Home Sharing in this context is that both PCs need to be on the same wifi network. So once you get out of range of the wifi network covering your home PC, the laptop is not going to be able to Home Share.
    Have you considered importing your iTunes music to the laptop? Then you could listen to a local copy of the music on the laptop while you're on the road. (You can do the import via home sharing when both computers are on the same wifi network.)

  • How do you access updates to apps from the App store after changing to a new ID because the password on the old ID was changed and you don't know what it is now?

    How do you access updates to apps from the App store after changing to a new ID because the password on the old ID was changed by the former husband and you don't know what it is now?  And you set up your own new ID and account but can NOT access the updates, from the App store for the many apps that you already have, because they require that you sign in with that former now inaccessible ID and account and password?  Call it a problem of modern times and changing relationships, if you want to be charitable.

    So I guess it will only be new apps that I download that are allowed to give me their updates while 13 updates wait for me on an ID I can no longer access.
    Yes...  sorry.
    In the future, if need be, you can re download your purchases for free  >  Downloading past purchases from the App Store, iBookstore, and iTunes Store
    Good rule of thumb is to back up your purchases regardless  >  Mac App Store: Backing up your app purchases

  • How can I access a calendar backup from my old iPhone?

    How can I access a calendar backup from my old iPhone?
    I recently had to get a replacement iPhone 4. The tech at the Apple Store thought that I might have had a software problem and recommended that I not "restore from backup," but start this phone as a new device and just sync the apps and what-not. My calendar on my computer was different than the one on my old phone, though, and now I need the data from my old iPhone calendar. I did back up my old phone just prior to taking it to the Apple Store.
    HELP!

    Well what you can do is update to ios5 then use icloud to sync your calandar up to your phone then restore your phone as new and when prompted in the new phone setup put in your icloud username and password and you will have your calandar events back.

  • How can i transfer a field value in the main report to its sub-report?

    <p><font face="Arial" size="2">How can i transfer a field value in the main report to its sub-report?</font></p><p><font face="Arial" size="2">Please eloberate with example if possible!</font></p><p><font face="Arial" size="2">Thanks...</font></p><p> </p>

    <p>You can do a couple of things - one would be to pass the information using the data linking expert.  Right click on the subreport, choose &#39;Change Subreport Links&#39; and select the field(s) you are wanting to pass to the subreport.  CRW will build parameters and a record selection formula for you in the subreport, and if that&#39;s what you want, then great.  But you can also remove the selection formula from the subreport and work with the parameter fields in the subreport however you would like.</p><p>Alternatively, you can look to passing Shared variables back and forth from the main and subreport.  this link talks about the method to do this: http://diamond.businessobjects.com/node/251</p><p> </p>

  • HT1766 HOW CAN I CHANGE MY BACKUP FOLDER FROM THE C DRIVE TO ANOTHER?????

    HOW CAN I CHANGE MY BACKUP FOLDER FROM THE C DRIVE TO ANOTHER????? because my c drive in the windows computer gets filled and i need to back up my ipod to a portable hard disk.. bt i dont know how to do it.. plz help

    you can't change the backup folder as far as I know, but you can choose to move backups. The information you need can be found in this article: http://support.apple.com/kb/ht4946
    Where iTunes backups are stored on your computer
    The folder where your backup data are stored varies depending on the computer's operating system.   Make sure the backup folder is included in your periodic data-backup routine.
    iTunes places the backup files in the following places:
    Mac:  ~/Library/Application Support/MobileSync/Backup/
    Windows XP:  \Documents and Settings\(username)\Application Data\Apple Computer\MobileSync\Backup\
    Note: To quickly access the Application Data folder, click Start, and choose Run. Type %appdata% and click OK.
    Windows Vista and Windows 7:  \Users\(username)\AppData\Roaming\Apple Computer\MobileSync\Backup\
    Note: To quickly access the AppData folder, click Start. In the search bar, type %appdata% and press the Return key.
    Hope this helps
    Regards,
    Stijn

  • HT2954 How can I access my imac mail from a different computer other than Apple?

    How can i access my imac email from a differnt computer other than
    apple?

    If you are using IMAP mail connection (IMAP keeps the  mail on the server), then you just configure the other computer's mail client to access the same account.
    If you are using a POP mail connection, then the mail is generally downloaded to your Mac and deleted from the server.  That is a much more difficult problem to solve.  NOTE:  Google's gmail does have a POP option that does NOT delete the mail on the server, so it is accessible via the gmail web page.
    A lot depends on what you are using for your mail service and whether you are using IMAP or POP protocols.

Maybe you are looking for