Requery condition question

JDev 11.1.1.4, JHS 11.1.1.3
Not sure if this is a JHS issue or an ADF issue, but I have a problem when I set the requery condition on a form to "After Commit".
In the table view, I query up multiple records (call it 10) and then click the edit button for record #5 to go to the form and edit the record. I make edits to record 5/10 then click Save. The record saves, but the requery condition forces the form back to record 1/10 instead of refreshing record 5/10.
In a similar situation, if I set the requery condition to "Always", then run the same query and click on record #5, the form refreshes as it loads and brings up record 1/10 instead of 5/10. In this instance, if I then use the navigation arrows to try and navigate to the next record, the form is constantly refreshing and staying on record 1.
Basically, I have some child data that is edited in sub-tabs on the form, but also displayed in some read-only fields on the main form, so I need the form to refresh when saving.
Is there a setting I'm missing somewhere? Or do I need to override something? Or am I simply not understanding the requery condition properly?
Thanks.

Steve,
This all expected behavior.
A requery on a view object makes the first row the current row again.
If you don't want that, you can add code to your ViewObje4ctImpl base class that restores the current row after a query, see this post for an example:
Restore current row after refresh.
Steven Davelaar,
Jheadstart Team.

Similar Messages

  • Requery Condition with custom save button.

    Hi,
    I've set the 'Requery Condition' for my group equal to 'After Commit' and it doesn't seem to refresh my page when I do a commit using a custom button bound to my method in the managed bean.
    Do I need to do anything extra in my bean where I am committing the record in order to make the 'Requery Condition' work on my group ?
    Thanks,
    Shishir

    Hi,
    It depends on your version of JHeadstart what is happening with the Save functionality. In general, you should 'copy' whatever JHeadstart is doing.
    In my 10.1.3 version, it executes the action 'Commit' and the actionListener '#{bindings.Commit.execute}'. So indeed, try to execute the Commit binding as HJHorst told you, which should cause the onCommit functionality in the JHeadstart PageLifecycle class to fire and set the #{jhsAfterCommit} we were talking about before.
    Take a look at the JhsPageLifecycle class, onCommit function and you know what I will mean. This class 'captures' commit functionality, which will not be captured if you simply call getDBTransaction().commit().
    Regards
    Evert-Jan de Bruin

  • RE: possible glitch with conditional questions

    I've been designing a form with mulitple conditional questions. On testing, a 'glitch' seems to be occuring. If i     a) check and answer to a question which leads to a secondary conditional question, and then b) check a response in that conditional question, and then c) change the response to the original question, the response to the conditional second question remains. i think this may be due to the fact that once you check an answer in a single choice question, you cannot "unanswer" or uncheck the whole question, that is you cant "remove" the check all together.
    Any workarounds?

    I'm not quite sure I understand. Can you create a simple form illustrating the issue and send it to me. Please enumerate the exact steps that cause the issue.
    Thanks for the clarification.
    Randy

  • Workflow condition question

    Whenever a new opportunity is being added, If the ExternalSystemId field is blank then go ahead and fire off the workflow action. If it's NOT blank then do not fire off the workflow
    In the workflow condition, I have this
    len(Field_Value('<ExternalSystemId>')) = 0 OR len(Field_Value('<ExternalSystemId>')) IS NULL
    but it still fires off the workflow even though the external system id field has something in it.
    Do you have any idea?
    Thanks

    If I understand your question, you would need to write your default expression in the field definition (read the Default value and post default behavior). There are no workflow triggers for create (new Opportunity).

  • 'Share Name ID' Terms and Conditions Questions

    Sorry for the double post - I had originally, by habit, posted this in the Droid Razr forum, but realize now it would be better here.
    I would rather have my Verizon number display my name than the generic "Wireless Caller" and the instructions for how toConfigure Share Name ID tell you how to do that.   But my question has to do with the Terms and Conditions on that page which read:
    Note the Terms & Conditions: Your use of Name ID Services is subject to the following terms and conditions. By submitting a name for display and disclosure to others you are affirmatively asking Verizon Wireless to give your name and wireless phone number to a publicly available directory for use and distribution and you agree and consent to disclosure and use of this information by third parties.
    Can anyone tell me exactly what that means?  Specifically, I have three questions:
    Does it mean you are now in a public "white pages" type directory?
    Does it mean your phone number will be shared with telemarketers?
    And lastly, if you have chosen to keep your Customer Proprietary Network Information (CPNI) private and opted out, will using Share Name ID override that selection?
    In another forum there's a lot of discussion about this and I'd like to be able to add some informed information as opposed to wild speculation.
    So if anyone - especially a Verizon employee - can shed some light on what those Terms & Conditions mean (or don't mean), I'd appreciate it.
    Thanks.

    I just got an answer to this from a very nice Verizon employee named Ryan.  For anyone else who is interested, he said:
    The Share Name ID service allows your name to show a specific or customized name when calling another person. The directory the terms and conditions are referring to are databases that landline companies use to provide Caller ID service. Landlines and cell phones process Caller ID in different ways. When you call a cell phone, whatever that phone has your number saved is how it shows on the display. Landline phones do not typically have a locally stored address book, so they rely upon these databases to give a name to display. The directory that is being referenced are these databases, used solely for Caller ID. They are not publicly accessible and searchable like a White Pages.
    Opting in to Share Name ID will not override the CPNI opt out, they are two separate entities, and Verizon Wireless will not give your information to telemarketers. The only thing that will change with using Share Name ID is that your name(or whatever you choose) will show up whenever you call somebody instead of a generic "Wireless Caller" statement. Your privacy is still very much respected, and no alterations will be made.

  • A simple IF condition question????

    Hi guys...
    I have a short question???
    I am faced with two conditons of the form:
    If(a && b && C){
    do something
    }else
    if(a && b && c && d){
    do something else
    the problem I am getting is that the first condition is executed on both cases.
    is there any other way to make a stronger difference between the two conditions discribed above???
    thanks...

    Well, once the any conditional part of an if/else if/else statement is reached, the rest of the conditionals for any further else if's or else's are ignored on the understanding that all conditions should be mutually exclusive.
    In your case, your first condition says nothing about the outcome of d, only that a, b, and c must be true. If the first condition requires that D must not be true, then you can use something like...
    if(a && b && c)
       if(!d)
          //do something
       else
          //do something else
    }Otherwise, if the first condition has no relation to d, and you want both to enter both blocks if a, b, c and d are true, then you need to give them separate IF blocks..
    if(a && b && c)
       //do something
    if(a && b && c && d)
       //do something else

  • Pricing condition question

    Hi Gurus,
    I need your help
    1) Want to configure a pricing condition which can be used only in a purchase order, but NOT in a contract/outline agreement. Is it possible? If yes, then how?
    2) Want to configure a pricing condition which when added in a purchase order, will Not add the corresponding charges against the cost of material, but instead will get posted to a seperate G/L account. What special I have to do for it's configuration?
    I do Not want to add a seperate line in the PO with a NLAG material accounting for those charges. The business wants the charges as a pricing condition (since we have the flexibility to put a different Vendor in a condition type )
    Thanks,
    Kumar

    Hi,
    1.Why you want a condition which can be used only in a purchase order, but NOT in a contract/outline agreement? What is the real business requirement!
    2.For Not to add the corresponding charges against the cost of material,follow the steps:
    Create a condition type (copied from standard FRB1 or FRA1 or FRC1 condition type ) in M/06 t.code & select check box of "accrual" selected in control data-2 & the Cond.category must be B(Delivery Cost) in control data-1 .
    And
    In the schema (M/08), keep an accounting key & an accrual key for that condition type
    In OBYC only assign G/L account (separate) for accrual key with chart of account, valuation modifier & valuation class.
    Now create PO( during saving PO, you can see net value not included amount in that condition type  in PO & assign as needed by you separate vendor to that condition type)
    Go for MIGO & do GR and see all accounting entries with a separate entries for separate G/L account
    For more check link:
    http://wiki.sdn.sap.com/wiki/display/ERPLO/PostingplanneddeliverycosttoNon-inventoryaccount
    Regards,
    Biju K

  • BAPI_QUOTATION_CREATEFROMDATA2 pricing condition question

    I am using XI to pass sales data from SQL Server into IDOC QUOTATION_CREATEFROMDATA201 to be processed by BAPI BAPI_QUOTATION_CREATEFROMDATA2 for the purpose of created new sales quotations.
    I am having a problem with pricing. I am populating a PR00 condition value within QuotationConditionsIn and the corresponding entries in QuotationConditionsInx. The data makes it into the new quotation, but there is a problem...there are 2 PR00 conditions. An existing one created by SAP automatically and the one from the IDOC, which has the proper value but is in state "inactive".
    Is there a way to tell SAP to use the incoming PR00 condition value and/or remove or deactivate the auto-generated PR00 condition record?
    Any help would be greatly appreciated.
    Thanks,
    Nathan

    Hi Thomas!
    Then we can go further in note 593246:
    you should
    1. Switch for activating the new condition item handling:
    Import parameter LOGIC_SWITCH-COND_HANDLE = 'X'.
    6. Addition of a condition with amount '0.00':
    ORDER_CONDITIONS_IN-ITM_MUMBER = '000010'
    ORDER_CONDITIONS_IN-COND_TYPE = 'PR00'
    ORDER_CONDITIONS_IN-COND_VALUE = '0,0000'
    ORDER_CONDITIONS_IN-CURRENCY = 'EUR'
    ORDER_CONDITIONS_INX-ITM_MUMBER = '000010'
    ORDER_CONDITIONS_INX-COND_TYPE = 'PR00'
    ORDER_CONDITIONS_INX-UPDATEFLAG = 'I'
    ORDER_CONDITIONS_INX-COND_VALUE = 'X'
    ORDER_CONDITIONS_INX-CURRENCY = 'X'
    Result: The condition is created with amount '0.00'.
    Regards,
    Christian

  • Java.util.concurrent.locks.Condition question

    Hi all,
    what is in practice the difference between condition.await() and
    condition.awaitUninterruptibly()?
    Why should I permit to wake up a dormant thread if the condition doesn't hold?
    What is the "best" solution?
    Regards,
    Michele

    Hi all,
    what is in practice the difference between condition.await() and
    condition.awaitUninterruptibly()?
    Why should I permit to wake up a dormant thread if the condition doesn't hold?
    What is the "best" solution?
    Regards,
    Michele

  • Dynamic parameter list condition question.

    CR2008
    Let say I have a dynamic parameter based on EmployeeName field in Employee table. How can I limit a parameter drop down list only to employees from one specific department? I do not want to select department first, I want to "hardcode" it somehow. It seems that parameter setup window does not  have any search criteria.
    Thanks,
    Oleg

    Try to put the filter condition in business view manager. Once you publish the report to server by default it generates an LOV in repository. Now open the business view manger and select the LOV and click on the object definition icon to see related business view and data foundation. Now open the data foundation and in the field explorer try to insert a new filter and add the condition like ="department name" and apply this and save the datafoundation. Now right click on the filter edit rights and apply this to all the user groups. Now when you open the report and refresh the report you will be able to see only the list related to the department.
    Regards,
    Raghavendra.G

  • Another conditions question

    Hey All,
    Can anyone tell me the correct syntax to build the following where clause in a condition statement?
    I am trying to emulate WHERE QryGroup1 = y OR QryGroup2 = y against the BP table in a choose from list.
    I used the same syntax as the example in the help files but if I use those two columns and any of my BPs match the second part of the OR statement it is returned everytime in the choose from list even if you type in a specific value or a letter plus the * character.
    Any help would be appreciated.

    Fixed by workaround from SAP support:
    Hello Curtis,
    This is a bug, the DI is misplacing the brackets. This is candidate to
    be fixed in SP1. For the moment I have a workaround for you.
    The workaround is to add third (dummy) condition, with AND relationship
    after the 2 original conditions. you will see in the profiler that
    the UI builds the query correctly and in the AddOn, the list shows
    correct results.

  • Libraries loaning ipods -- terms and conditions question

    I have been reading recently about programs set up by libraries to loan ipods with itunes content to patrons.
    How can this happen when the terms and conditions state: "You agree not to modify, rent, lease, loan, sell, distribute, or create derivative works based on the Service, in any manner, and you shall not exploit the Service in any unauthorized way whatsoever, including but not limited to, by trespass or burdening network capacity."
    Are there separate terms for these library programs?
    Thanks,
    Linda

    Generally, that applies to a consumer.
    Laws allow use in specific ways of copyright materials for educational institutions and libraries.

  • Read Only Condition Question

    Hello,
    I would like the fields on the screen to be Read Only when the current
    person logged on is not the person that created the Record.
    The following case works in the Read Only condition:
    NOT Exists (SQL query returns no rows)
    SELECT 'X' FROM DUAL WHERE :P90_ASSESSOR_USER_ID = :GLOBAL_USER_ID
    But this does not work:
    Value of Item in Expression 1 != Expression 2
    EXPRESSION 1: P90_ASSESSOR_USER_ID
    EXPRESSION 2: GLOBAL_USER_ID
    I've tried changing the Expression 1 & 2 fields to be prefaced with : and & and also used V('P90_ASSESSOR_USER_ID') and NV('P90_ASSESSOR_USER_ID'),
    but can't get the second way to work. Anyone know why?
    Happy Holiday Season!
    Carol

    Try
    IN EXPRESSION 1
    P90_ASSESSOR_USER_ID IN EXPRESSION 2
    :APP_USER Cheers,
    Hari

  • Conditions questions  (UI+DI)

    Hi all:
    Im trapped using the conditions object.
    I want to filter a dbdatasource using a query with dates and some fields.
    Is there a help or documentation for complex querys? (please do not refer me to the simple samples in the UI API Help)
    I want to search the OINV table, for a period of dates, and the subtype field too, because I want to search only invoices, or bills, or export invoices, etc.
    does anybody has a sample with a query like this??
    pleasee??
    Thanks in advance
    Harold Gómez

    never mind.... after several hours of try and error, I finally manage to get the search to work
    The documentation for the Conditions object needs a big improvement.
    Harold Gómez

  • Numbers Formula/Condition Question

    I've created a small calendar in Numbers, would like to know how have the numbers (representing the day) gray out (or become a strikethrough character) as that day passes.

    If the cells contain actual Date and Time values, you could use the conditional format rule(s) shown below:
    Conditional Format rules are set in the Cell Format Inspector.
    Regards,
    Barry

Maybe you are looking for

  • How to export swf file in different versions of flash like (6,7,8,9) ?

    Hi,     System Specification :     -XP with SP3     -MS Office 2003     -Flash V.10     -Xcelsius Engage 2008 ( 5.3.0.0 )     -Xcelsius Build number 12,3,0,670    When I export output in swf format then xcelsius generating swf file of version 9.  I w

  • Bootcamp: Sound not working on Windows Vista Ultimate 32-bit

    Hello everyone, I've got quite an unsual problem (whell at least I think anyway). On my iMac (Mid 2008, 2.4Ghz C2D, 2GB ram, 2400XT), I recently installed Windows Vista Ultimate (32 bit). I've been using the sound out of the speakers, until now when

  • AS2 Error: Transport status code: 403

    Dear SAP experts, Currently, our Trading Partner is sending messages to our server via HTTPS, AS2 connection. Our Trading Partner is getting error, Transport status code: 403. I've checked our AS2 adapter logs (SAP PI), and it says, Error in unkown c

  • Iweb and save

    How frustrating. I had added two or three new pages to my creation, and suddenly iweb crashed. When I reopened it, those last pages were gone. I had not saved or published. So I fire iweb up again and started adding new pages. Learning from my early

  • Reject error Invoices

    Hello, We have a scenario where, sometimes for a given PO we receive the invoice from the vendor before we receive the GR. Then, after we receive the invoice, if someone decides to cancel the order they go ahead and delete all the PO line items. And