Change Prompt of messageTextInput based on PPR Event

Hello:
I want to dynamically change the prompt based on a PPR event, I thought of using SPEL for this but looks like Prompt cannot be changed based on SPEL.
Can you please suggest a way to achieve this?

Hi:
Thanks for the response....I was thinking of the same, but redirecting to the same page will have a cost implication right? as it has to render the same page again?
Also, when I am trying this in ProcessFormRequest where I handle the PPR event, I am getting Developer Mode error...so seems like I can change the prompt only at ProcessRequest....let me know if my understanding is correct.
Regards

Similar Messages

  • How can we change Prompt  default values based on other prompts....

    Hi Experts,
    I have a prompt Status --> DAILY,WEEKLY and MONTHLY.
    If user selects any one of this value the default value in another prompt Startdate and Enddateshould change,Here Startdate and Enddate is Editbox/calander control.
    Declared the presentation variable in first prompt and in the second prompt of SQL Results(Default to) i am writing
    +SELECT CASE WHEN '@{Pres}='WEEKLY' THEN VALUEOF(VAR_WEEKLY) END+
    but in the default one it was not showing the Repository variable value...
    Please suggest me any solution its an urgent
    thanks,
    saichand.v

    Hi Saichand,
    Are you getting an error ("Error Generating Drop Down Values")? Or are you just seeing a blank default value?
    If you are getting an error, do you have any presentation columns in your default SQL formula? If not, that's your problem. OBIEE won't let you construct a logical SQL query without having a presentation column in it somewhere.
    If this is your issue, try the following: SELECT CASE WHEN 1=0 THEN <PRESENTATION_COLUMN> WHEN '@{Pres}'='WEEKLY' THEN VALUEOF(VAR_WEEKLY) END FROM <SUBJECT_AREA>
    Be sure to replace SUBJECT_AREA and PRESENTATION_COLUMN with appropriate names. The condition 1=0 will never evaluate to true, so it's as if it's not there, but OBIEE will see that there's a presentation column in the formula and stop giving you the error.
    Good luck and if you found this post useful, please award points!
    Best regards,
    -Joe

  • Creation of service request based on an event in ECC

    Hello,
    I want to create service request based on an event in ECC HR. For e.g. events can be employee leaving, Absence for longer period etc.
    Is there a standard way of doing this ? If so could you please let me know the process/steps.
    Regards

    Adding a BOL entity and binding it with the main parent node entity will give access to the main BOL. Using which, we can traverse to the required object using GET_RELATED_ENTITY and change the respective attributes.

  • How to trigger a report based on a event/stored proc or sql dts completion

    Post Author: Crystaldev
    CA Forum: Publishing
    I want to run/trigger a crystal report based on file existence or based on a stored proc/sql dts/a value present in a sql table. The way I want to do is schedule a crystal report in crystal enterprise and then run the report based on a event like file existence or based on a sql dts completion or a value existence in a sql table. We are using crystal reports v10.
    I am not sure how we can do this, any help is appreciated. Thanks.

    Hi
    When you click on View Data, at bottom click on Edit button
    It will prompt a connection details tab wherein you can view and modify the connections
    Nik

  • BACKGROUND  SCHEDULING  based on a event

    Hi,
        I need to execute my program in background ..  based on an event..for example.. here i want to execute   RBDMIDOC program  based on  when ever i change the master data ..
      i created a varient in SE38.. and i enetred into SM37  and  here  what i need to select .. for based on  an event..
    thanks
    Babu

    You can use worfklows to achieve this.
    For more infor check the faq in the Workflow forum, or ask your local workflow expert.
    basically you must first find out which event is triggered, you can find this out with the event trace (SWELS and SWEL) then you must create a workflowtemplate which is triggered by that event and which will schedule the backgournd job. Next you must link the event to the workflowtemplate, either in pftc , tab event, or transaction SWE2.
    ALternatively you can use transaction SWEINST to place a check function module on the event Business object instance. In that FM you can also schedule the job. This is a bit easier than creating a worklfow.
    Kind regards, Rob Dielemans

  • How change the graph dynamically based on pivot table.

    Hi,
    My Report having pivot table and bar chart. Organization Name column set as pivot table prompts in pivot table.So Organization Name is appear as dropdown list.If i choose the diffrent Organization Names the pivot table data is according to the Organization Name but no changes in chart.How change the Graph dynamically based on pivot table.
    Please help on this.

    ok.I created pivot table with 4 columns and created chart using pivot table chart options but all 4 columns are displaying chart.But I need only 2 column in chart ..unable to edit the only chart in pivot table.Please help on this.Thank you..

  • Cursor focus during a PPR event

    Hi,
    I have two messageTextInput columns (lets say text1 and text2) inside a table region. When a user enters a value in text1 and do a tab out, I fire a PPR event and set some attributes in my VO. The problem is: after it is done, the cursor focus does not move to text2, even though the user did a tab out after entering a value in text1. Cursor focus returns again to text1.
    Also, I do not want to do a page forward, so that processRequest is called again. That would be a costly operation for us. Please let me know if there is a way to regain cursor focus to the right textInput bean.
    Note: This is IE 7.
    Thanks. Much appreciate your inputs.
    Raja

    Raja see this thread, i have replied this some time back:
    Re: How to set focus on a textinput/poplist using PPR
    --Mukul                                                                                                                                                                                                                                                                                                       

  • PPR event getting previous value

    Hi
    There is a PPR event on a standard text box. I am handling PPR event in my custom CO. Whenever I change the value abd tab out of the text box I get the previous value not the current(changed) value.
    ExpenseReportLinesVORowImpl expensereportlinesvorowimpl = (ExpenseReportLinesVORowImpl)expensereportlinesvoimpl.getCurrentRow();
    please help
    Thanks

    Hi,
    Here are three different ideas:
    (1) Copy the current row into a local RECORD variable inside the loop.
    (2) Do a self-join in the query, so that the cursor itself has the previous and current rows. (If necessary, use the analytic ROW_NUMBER function to number the rows so you can do the self-join correctly.)
    (3) Use the analytic LAG function to copy the necesssary columns from the previous row in the query.

  • PPR event hides button click :(

    Hi,
    I have a problem with the PPR event.
    I have a PPR on a field. If I change this field without tabbing out from it, and I press a button, the code in the button is not performed. I read the OAF DEV Guide, and I put in the processRequest the code:
    << OAWebBean body = pageContext.getRootWebBean();
    if (body instanceof OABodyBean)
    body.setAttributeValue(OAWebBeanConstants.FIRST_CLICK_PASSED_ATTR, Boolean.TRUE);
    >>
    but it does not work.
    Could you kindly help me?
    Thanks a lot,
    Rosanna.

    Sorry for the delay Rosanna.
    How are you capturing the event's such as when save button is pressed/ppr action fired. I assume you differentiate the save button's event by setting an attribute name something similar to "saveEvent" and the field's ppr event attribute as "varianceEvent" or something. Then on the controller code you could do pageContext.getParameter("event") and compare it with saveEvent and varianceEvent to differentiate what hte user has clicked on.
    You can also club the processing that you do for PPR enabled fields with the save part of the code. Then remove the PPR on the fields. You will have the fireaction/firepartialaction only on the save button in the page. Could you check if this approach works for you.
    Thank you,
    Arun

  • Enabling PPR Event across the regions

    Hi All
    I dearly need all your thoughts on the following requirement.
    I have 2 items in 2 different regions referring to different CO's. For instance, first region is having a text item and the second region is having a MessageChoice item. Now if i change the value of the first item eventually the value in the second region's messageChoice item should be populated. How can i enable PPR event across 2 items referring to different COntroller files. Any input on this will help me a lot for proceeding further.
    Thanks
    Praveen

    You can use the pageContext.putSessionValue and getSessionValue to get the value.
    Yes you can change the parameter pass to a pass. In the Controller you can call the page with the help of pageContext.setForwardUrl.
    You can just check the condition like on the basic of some condition like If A then code will execute [[With 1 parameter]] else another code will execute [[with 2 parameter]]
    Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • PPR event for messageLovInput

    I have a lov item - which 4 different values. When the value of the lov is changed, it fires a PPR event (LOV automatically fires a predefined
    PPR client action) and the below code is executed but if the user enters the value manually without clicking the LOV to select a value if (pageContext.isLovEvent()) never gets fired.
    I would like to fire the PPR event when the user tabs out from the LOV field without the user implicitly clicking the LOV field to select a value from the list. Is there any way to accomplish this?
    This fires only if you click the LOv item to change the value.
    if (pageContext.isLovEvent()) {
    String lovInputSourceId = pageContext.getLovInputSourceId();
    if ("SalesContact_qry".equals(lovInputSourceId))
    OAMessageLovInputBean mBean=(OAMessageLovInputBean)webBean.findChildRecursive("SalesContact_qry");
    String s = (String)mBean.getValue(pageContext);
    /** get AM details **/
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    Boolean executeQuery = BooleanUtils.getBoolean(false);
    String v_SalesContact = pageContext.getParameter("SalesContact_qry");
    Serializable[] parameters = {v_SalesContact,executeQuery };
    Class[] paramTypes = { String.class, Boolean.class };
    am.invokeMethod("HandleSalesContact",parameters, paramTypes);
    }

    I am experiencing a similar problem as the original post with one difference. Validation on the field is triggering a lovValidation PPR event when the user tabs off the field. I can then catch that event in my processFormRequest and respond accordingly.
    However, when the user doesn't tab off but instead clicks on a submit button or another field's LOV flashlight icon, the processFormRequest never receives the LOV PPR event. It instead receives the event that is triggered from the submit button or the other field's LOV flashlight icon.
    Has anyone else run into this issue? I would imagine the MyOAF will run into this problem as well.

  • URGENT: Alignment of Prompt in MessageTextInput

    I need a help in the alignment of prompt in MessageTextInput. I drag and drop a read only form from the data control palette. I changed the OraPromptText properties in base_desktop.xss to left align. But still it works only for static prompts, for Data bounded Read only forms (where prompt is set by model), it doesnt work.
    Please let me know which property to change in either oracle-desktop.xss or base-desktop.xss
    Thanks a lot.

    Yeah I did. Actually The MessageTextInput automatically aligns the prompt text to "right". I have gone through base-desktop.css and oracle-desktop.css. I couldn't find any style class associated with the prompt text in MessageTextInput.
    This is the HTML code
    <td align="right" valign="middle" width="16%"><span class="x8">MLS</span></td><td width="12"><script>t('12','0')</script></td><td valign="middle" nowrap width="16%"><span class="x2" style="align:left;text-align:left">2746589</span></td><td width="12"><script>t('12','0')</script></td>
    I'm only able to align the text (2746589) but not the prompt text (MLS) even if i enter the prompt text static, it aligns to right.
    Is there a way to override this.
    Thanks a lot.

  • Issue in PPR event calling as it submits the page validation

    Hi,
    i need to display the field based on the check box value.
    I used PPR event on clicking chekbox bean. event: update
    i set SPEL to the display fields.
    but when ever i select the value in checkbox , the page is submitting and pop up (checking all mandatory fields or not)
    It shows form validation failiures:
    Enter the mandatory fields/........
    how to handle this.
    please help in this .
    Thank you

    Please make sure, when you trigger your PPR event, you have some values given to the field which has REQUIRED = YES.
    Setting REQUIRED=YES makes that field a mandatory field, and you cannot submit the form to the server without giving value to that field.
    Thanks
    Saurabh

  • Report is not getting refreshed after changing prompts once again?

    HI,
    I am running some webi and deski reports using webi sdk also i'm handling the prompts of
    report.
    Problem is that if i ran the parametrized webi or deski report then my application shows the prompt page
    then i fill all the prompt for the report it shows the data for selected prompt values.
    But if i once again changed prompt values it shows data of previously selected prompt values not for
    the currently changed prompt values. means reports not getting refreshed.
    sometimes its work correctly.
    What will be problem?
    How can i resolve this issues?
    Please help me
    Thanks in advance
    Harshad

    The workflow is:
    1. Refresh
    2. Set Prompts
    3. Get View.
    then repeat.
    Are you refreshing before setting prompts?
    Sincerely,
    Ted Ueda

  • How to call  a javascript method after the PPR event has finished  ?

    Hi!
    How can we make a javascript method get called after the processing of ADF PPR event?
    My specific use case is,
    I want to call a javascript function after the data in the table is loaded...
    In 10g, that is not a problem, as the data used to get loaded directly during onLoad, and so i would call my js function on load;
    but in 11g , the table data is being loaded through PPR which is initiated onload, and so i needed to call my function after the PPR Response processing has been done; for which I need the name of the event triggered at that instance.
    Is it possible to do this?
    Regards,
    Samba

    Hey, I got it.
    I handled the ADF Controller's PREPARE_RENDER_ID phase of the lifecycle, and then called the
    script to get Executed.
    The code :
        public void afterPhase(PagePhaseEvent pagePhaseEvent) {
            FacesPageLifecycleContext ctx = (FacesPageLifecycleContext)pagePhaseEvent.getLifecycleContext();
                 if (pagePhaseEvent.getPhaseId() == Lifecycle.PREPARE_RENDER_ID) {
                    if(AdfFacesContext.getCurrentInstance().isPostback() )
                        afterRender();
        }is written in lifecycle listener , and my backing bean extended this listener ,
    and in the afterRender() method I did this :
       public void  afterRender(){
                System.out.println("AFTER RENDER CALLED");
               FacesContext context = FacesContext.getCurrentInstance();
               ExtendedRenderKitService service = (ExtendedRenderKitService)Service.getRenderKitService(context, ExtendedRenderKitService.class);
               service.addScript(context, "translate();");
           }That's it.
    It did work, magnificently.
    Thanks for the idea.
    Regards,
    Samba

Maybe you are looking for

  • Problem Downloading Extra GarageBand Loops

    Just bought a new iMac and ran into a problem downloading the extra greyed out loops. The issue occurred because I upgraded GarageBand through Software Update before downloading the extra files. After the upgrade Software Update no longer gives you a

  • Searching a string in Microsoft word from a Jav Application

    Would appreciate if you could provide me with an example/ suggestion to search for a string in Microsoft Word document from a java aplication. Thanks

  • Everything is being marked "Low Res" when they're not

    I have a bunch of photos and have used them as desktop pictures, sent them to fm, emailed them, etc. All was well. Then one day my iPhoto marked most all of my pics as f-1006 or low res. When I go into the System Folder to Desktop Appearance, and I c

  • Anyway to speed up wireless mighty mouse tracking??

    i finally made the plunge and added a WMM to my dual G5 2.5MHz. I love the wireless part and will likely add the keyboard later. The biggest problem I'm having is that tracking is slow. Not jumpy like other folks are experiencing, just slow. I've got

  • Security code check on ATV

    Have to give security code to rent movie on ATV? Since the latest update the ATV asks for the credit card securuity code when renting a movie. This is anoying, to say the least! aparantly growth comes with distrust. that's a pity, for us, for Apple.