How to assign a value to the page variable to enable partial page rendering

This is part of my code:
<bc4j:rootAppModuleScope name="App1"
rendered="on@ctrl:page">
Now, I want to change the value of "on@ctrl:page" to "true" after user click a button so that part of the page will be displayed. But how do I assign the value to "on@ctrl:page". I tried to put the followings in my even handler:
<bc4j:setPageProperty name="on" value="true">
<bc4j:parameter name="on" />
</bc4j:setPageProperty>
But it doesn't work. Could someone pls tell me how I should do it.
Thanks a lot!
Ling

You should do is:
in your event handle codes,you add the list:
public static EventResult eventname(
BajaContext context,
Page page,
PageEvent event) throws Throwable
EventResult result = new EventResult(page);
result.setProperty("on","true");//or "false"
return result;
then,
change
rendered="on@ctrl:page" -> data:rendered="on@ctrl:eventResult"
also ,you should see the 5th part of 'UIX Developer's Help'

Similar Messages

  • How to assign a value to the viewcriteria attribute from backing bean ?

    Hi,
    I have a readonly VO with the following query
    select attr1,attr2, attr3, attr4
    from sometable
    I have a view criteria in the above VO something like
    attr1=
    and attr2=
    I have dragged and dropped this criteria on a Status.jsff page as query panel with table. So the user can search the records by manually entering the values in the query panel. Also, there is another page Main.jsff where, if the user clicks on a button, it redirects him to Status.jsff page carrying a numeric value from the Main.jsff page. Now I have to assign this numeric value to "attr1" of the view criteria and execute this VO and show the updated results in the Status.jsff page.
    I used the below code :
    ViewObject vo = appModule.findViewObject("VOName");
    ViewCriteria criteria = vo.getViewCriteriaManager().getViewCriteria("CriteriaName");
    criteria.getVariableManager().setVariableValue("attr1", numericValue);
    vo.applyViewCriteria(criteria);
    vo.executeQuery();
    For the above code, i got an error saying that Variable "attr1" not defined in "VOName"
    Then i tried setting simple where clause
    vo.setWhereClause("attr1="+numericValue);
    vo.executeQuery();
    For this code, i got an error saying that SQL error during statement preparation.Statement: SELECT * FROM (select attr1 ,attr2,attr3,attr4,from VOName) QRSLT WHERE (attr1=1234)
    Please let me know the solution to this problem.

    Thank you all for the suggestions.
    The idea of Bind Variable works to query the criteria. But I have a Status.jsff page where User can even manually enter the attr1 value and query the results. When I added a bind variable to my VO, one extra input text field with the Bind variable name got added to the query panel in Status.jsff page. Also the table in the page did not show any results even after performing the executeQuery() on the VO(as per the steps explained in the Andrejus blog link that Navneeth has provided)
    Please suggest

  • How to assign a value(populate) a custom field in a PCUI page ?

    Hi
    I am working in SAP CRM on its web interface PCUI.
    I have created a custom field "ZZ_NEWFIELD" through EEWB in Business Partner. It is visible in accounts transaction header (crmm_account).
    Now if I create an opportunity for this business partner, I want to fetch the value of "ZZ_NEWFIELD" from BP Master and display it in opportunity(header) transaction.
    Can someone tell me how to go about it ? I am novice to BSP applications.
    Regards
    Vishal

    Thanks Francisco for your reply.
    I have already posted it in the CRM forum as well but thought to place it here also.
    As for the weblog you menioned, it just details the method of extending the field and placing it in the IView. I have done it already.
    The problem I am facing is to how to populate this field ? I know the source field from where it has to get the data but I dont know the method/code to enable the value in new field placed in the Opportunity header.

  • How to assign date value in the report

    Hi,
    I want to compared between two dates. One date is dynamic and other one is fixed.
    for example Date1 = today's date
    Date2 = 12/31/9999
    How do i fix the date2 in the report.
    Please any one help me
    Thanks & Regards
    Jagannadha Raju

    you can use default values in the properties of the date variable that will allow it to be the data yo uwant it to be
    the 2nd date which is current use sap provided variable current data on it as restrickted value( Not default).
    hope that helps

  • How to assign a value of the bean to a js variable.

    Hi,
    Im getting some values from the DB which is stored in a list , Now the list is sent across to the jsp through the bean.
    I need to get the length of the list
    I tried something like this.
    <script>         
    var size = <% rmaLicenseTransferForm.slfextUiElements.size(); %>
    </script>rmaLicenseTransferForm is the name of the formBean and slfextUiElements is the name of the list.
    I guess this wont work....by the way i using struts framework.....
    Thanks

    Use the JSTL fn:length tag.

  • How to assign bean value to a local variable in JSP using struts.

    Hi everybody!
    I've a problem that puzzled me on how to assign a bean value to a local variable like String in JSP using struts.
    we can have someting like this to display the value
    <bean:write name="detailService" property="status" />or
    <bean:define id="theStatus" name="detailService" property="status"/>
         This is country: <%=theStatus%>but an error occured when I tried like this:
    String currentStatus = "<bean:define id="theStatus" name="detailService" property="status"/>";
    or
    String currentStatus = "<bean:write name="detailService" property="status" />";Is there a way to do this?.....
    Any help pretty much appreciated

    Java != JSP.
    The <bean:define> and <bean:write> tags are custom tags meant to appear in the HTML section of a JSP file, as opposed to the scriptlet section. They actually get turned into java code as part of the translation process.
    The <bean:write> tag naturally just writes out what you tell it to.
    The <bean:define> tag defines a local variable, and gives it a value.
    this should do it.
    <bean:define id="theStatus" name="detailService" property="status" type="java.lang.String"/>
    <%
      String currentStatus = theStatus;
    %>With the advent of JSTL, you shouldn't really need to use scriptlet code anymore. Personally I am for 0% scriptlet code in any jsp I write.

  • How do I pass value to 'getURL' url variable

    Howdy,
    I`m trying to launch a popup from a flash form using MX 7
    The popup works fine but I cant for the life of me work out how to pass 'theid' value to the url variable for the popup window.
    I think somthing like this can be done with action script and maybe a cfc but I really dont know how.
    You will notice I referenced 'theid' value directly, I know this will never work but just wanted to show what i was trying to acheive. If I were using a HTML form I could use some javascrip to get the element by id and append the value to the url. Is there away to do this in action script?
    <cfform format = "flash">
    <cfsavecontent variable="ticketpopup">
        getURL("javascript:window.open('supportdetails.cfm?id=#theid#' , 'TicketDetails', 'width=900,height=630, Scrollbars=1, resizable=0'); void(0);");  </cfsavecontent>
    <cfselect name="selectbox" query="thequery" value="id" display="whatever"></select>
    <cfinput type="hidden" name="theid" bind="{selectbox.selectItem.data}">
    <cfinput type="button" name="mybutton" value="whatever" onClick="#ticketpopup#>
    </cfform>
    Any help, much appreciated :-)
    Thanks

    I answered my own question, heres is a solution if anyone is interested..
    You can add the following actionscript to the onChange attribute of the select box. Its passes the value of the selected index to the URL and opens in a new window :-)
    No there is no need for a hidden field or a button either
    <cfform format ="flash">
    <cfselect name="name" query="thequery" value="thevalue" display="whatever">
    onChange="getUrl('supportdetails.cfm?ticketnumber=' + categorysubject.dataProvider[categorysubject.selectedIndex]['data'],'_blank');
    </cfselect>
    </cfform>

  • Can we assign two values to the same parameter? If yes how? For details ple

    Can we assign two values to the same parameter? If yes how? For details please go through the following SAP related program.
    Here I need to print 2 queries using the same parameter "QUERY" the value assigned to this parameter(query) is REPORT_TEST1. I want to assign one more value to this Parameter. Is is possible? This question may sound stupid if it is not possible please kindly reply.
    I want to do this to print two documents(values) with a single command (parameter)
    Anybody please help quickly,
    Now, I have 2 tables from different queries. I have a print (HTML written) option in my WEB Template
    JAVA PROGRAM:
    <param name="QUERY" value="REPORT_TEST1"/>
    function PrintReport(typePaper) {
    document.title ='Report';
    if (typePaper == "0")
    {var CurrentReportName = '&?mp=U&ptot=1&rtot=0&psize=' + escape(typePaper) + '&fsize=' + escape('39') + '&qtitle=' + escape(document.title);};
    if (typePaper == "1")
    {var CurrentReportName = '&?mp=U&ptot=1&rtot=0&psize=' + escape(typePaper) + '&fsize=' + escape('52') + '&qtitle=' + escape(document.title);};
    CurrentReportName += '&ASOFDATE=' + escape(AsOfLabel.innerText);
    var openCMD='<SAP_BW_URL>';
    openCMD += '&DATA_PROVIDER=REPORT_TEST1&TEMPLATE_ID=DPW_PRINT_PAGE&CMD=RELEASE_DATA_PROVIDER';
    openCMD += CurrentReportName;
    openWindow(openCMD,'MainTitleNow',800,600);
    The data provider here is REPORT_TEST1. Now it only prints the corresponding data for the data proviedr 1 i.e., REPORT_TEST1. I have a second table whose data comes from the data provider 2 when i use this HTML to print I want the second table contents from the data provider 2 (REPORT_TEST2)also to be printed simlutaneously.
    Please help.
    THANX A LOT,
    SRINI

    Hi,
    Try assigning two values seperated by a delimiter ( say '|') to the same parameter.
    In the function get the parameter value and seperate the values using the same delimiter.
    <param name="QUERY" value="REPORT_TEST1|REPORT_TEST2"/>
    Regards,
    Uma

  • Can we assign two values to the same parameter? If yes how?

    Can we assign two values to the same parameter? If yes how? For details please go through the following SAP related program.
    Here I need to print 2 queries using the same parameter "QUERY" the value assigned to this parameter(query) is REPORT_TEST1. I want to assign one more value to this Parameter. Is is possible? This question may sound stupid if it is not possible please kindly reply.
    I want to do this to print two documents(values) with a single command (parameter)
    Anybody please help quickly,
    Now, I have 2 tables from different queries. I have a print (HTML written) option in my WEB Template
    JAVA PROGRAM:
    <param name="QUERY" value="REPORT_TEST1"/>
    function PrintReport(typePaper) {
    document.title ='Report';
    if (typePaper == "0")
    {var CurrentReportName = '&?mp=U&ptot=1&rtot=0&psize=' + escape(typePaper) + '&fsize=' + escape('39') + '&qtitle=' + escape(document.title);};
    if (typePaper == "1")
    {var CurrentReportName = '&?mp=U&ptot=1&rtot=0&psize=' + escape(typePaper) + '&fsize=' + escape('52') + '&qtitle=' + escape(document.title);};
    CurrentReportName += '&ASOFDATE=' + escape(AsOfLabel.innerText);
    var openCMD='<SAP_BW_URL>';
    openCMD += '&DATA_PROVIDER=REPORT_TEST1&TEMPLATE_ID=DPW_PRINT_PAGE&CMD=RELEASE_DATA_PROVIDER';
    openCMD += CurrentReportName;
    openWindow(openCMD,'MainTitleNow',800,600);
    The data provider here is REPORT_TEST1. Now it only prints the corresponding data for the data proviedr 1 i.e., REPORT_TEST1. I have a second table whose data comes from the data provider 2 when i use this HTML to print I want the second table contents from the data provider 2 (REPORT_TEST2)also to be printed simlutaneously.
    Please help.
    THANX A LOT,
    SRINI

    Hi,
    Try assigning two values seperated by a delimiter ( say '|') to the same parameter.
    In the function get the parameter value and seperate the values using the same delimiter.
    <param name="QUERY" value="REPORT_TEST1|REPORT_TEST2"/>
    Regards,
    Uma

  • How do you assign a value to the APEX field APP_USER

    Application Express 4.0.2.00.07
    Hi
    Is there a special function/procedure to assign a value to the APP_USER field
    or a simple APP_USER := :P1_LOGIN_NAME would do
    Z

    Hello Zac,
    >> or a simple APP_USER := :P1_LOGIN_NAME would do
    The APEX engine is already doing it for you after a successful login – setting the value of APP_USER as the user login name. You can use it as a substitution string or with the bind variable notation (:APP_USER).
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Author of Oracle Application Express 3.2 – The Essentials and More

  • How to assigne multiple value in key of read table

    Hi gurus,
    I want read table xxxx with key field1 = ' xxx' or field1 = 'yyy'.
    how to assign multiple value as key for the same field while reading internal table.
    Regards
    sagar

    Hi ,
    You can loop the internal table like
    loop at  <table xxxx> where field1 = ' xxx' or field1 = 'yyy'
    or you can write two read statements to read the internal table in wrk area.
    read table   <table xxxx> with key field1 = ' xxx'.
    if sy-subrc <>0
    read table   <table xxxx> with key field1 = 'yyy'.
    if sy-subrc = 0
    endif.
    else.
    do your data processing.
    endif.
    Thans.

  • How to use script to get the first table row on each page?

    I create a print form to display a table. I set a conditional page break on this table, so the table rows on each page could be different.
    For example, there're total 50 rows in this table. On the 1st page, there're 5 rows, but on the 2nd page, there're only 2 rows, and so on...
    Now I want to get some value from the 1st table row on each page. How can do that? I can refer to a table row using TableRow[n], but I don't know how to calculate 'n' in script (either FormCalc or JavaScript) for the 1st row on each page.
    Any ideas?

    Hi Wei,
    There is an option of setting the overflow header in the pallette. You may check that out. It is basically used to have the table header to be seen in all pages, if the table is overflowing to multiple pages. You may put your first row as the overflow header.
    - hope this helps, Kindly update,
    thanks and regards,
    - anto.

  • How to assign a value for Unit of measure (like PC, KG...) in ABAP program?

    Hi,
        How to assign a value for Unit of measure (like PC, KG...) in ABAP program?
        I want to assign PC in a field to execute the program, like wa-ENTRY_UOM = 'pc'.
        But the system returen a message that "Unit of measure  is not convertible to stockkeeping unit PC"
        Could anyone tell me how to assign the value??
        Thanks!

    hi,
    first convert the quantity in the same unit  ( like in you case ST to PC )  by using FM :    MD_CONVERT_MATERIAL_UNIT
    CALL FUNCTION 'MD_CONVERT_MATERIAL_UNIT'
        EXPORTING
          i_matnr                    = matnr
          i_in_me                    = entry_uom
          i_out_me                   = out_uom
          i_menge                    = quantity
       IMPORTING
         E_MENGE                     = fp_l_v_quant
       EXCEPTIONS
         ERROR_IN_APPLICATION       = 1
         ERROR                      = 2
         OTHERS                     = 3.
      IF sy-subrc <> 0.
              give error message here
       ENDIF.
    bcoz in ur program somewhere the quantities etc are compared and there units may be different... so that is why it is showing such error.  so just convert convert the quantity in the same unit  .
    regards
    rahul
    Edited by: RAHUL SHARMA on Jun 17, 2009 9:31 AM

  • How to assign a value to ODI Variable using ODI Procedure

    Hi ,
    Is it possible to assign a value to a ODI Variable using ODI Procedure ?
    If it is possible how we can do that.
    BEGIN
    IF #Counter=1
    Then
    #Next_Increment:=#Counter+1;
    End if;
    END;
    In my example I have 2 ODI Variables #counter and #Next_increment.
    I am trying to assign VALUE TO A ODI VARIABLE #next_increment from another ODI Variable #counter.
    thanks
    prasanna

    Prasanna,
    I have a similar requirement where I need to assign values to ODI variables within a procedure. How do we make use of an ODI package to accomplish this ?
    Actually, I have a sequence of ODI steps, and there is a call to a procedure 'LOG ERROR' from every step which gets called in case error occurs in any step. I just need to identify from which step the error came.
    Please help.

  • How to assign a value to a parameter {?MyParam} dynamically?

    How to assign a value to a parameter {?MyParam} dynamically?
    Example:
      {?One_Or_Two}  <- my first parameter
      {?MyParam}       <- My second parameter
    The Code:
    If ( {?One_Or_Two} = 'One'  then
        {?MyParam}  = 'One' ;
    else 
        {?MyParam}  = 'Two' ; 
    (THIS IS NOT WORKING FOR ME!  ANYONE KNOW WHY?)
      IT NEVER ASSIGN THE VALUE?
    My Command query looks like:
    SELECT * FROM MyTable
        WHERE MyTable.MyColumn = {?MyParam}
    THANKS

    Hi Joseph,
    I'm a bit unclear as to what you are doing and from what I see you're running in circles. 
    Your Command query is looking for a field that is equal to {?MyParam}. 
    Now you want to take {?MyParam} in the report and change the value after you've set it. 
    Parameters cannot be set from the Command, you can format it and manipulate it but they cannot be set except from the parameters window or from a front-end. 
    Thanks,
    Brian

Maybe you are looking for

  • Has anyone heard about hotspot shield

    has anyone had anything to do with hotspot shield and is it safe

  • Handling smart/curly quotes in Java

    Hi - I want to know how to handle smart / curly quotes in Java. I need to replace them with actual quotes. I was trying somethin like below. xmlString = xmlString .replaceAll( "‘", "'" ); but this is not working. Just tried to print indexOf( ""‘") an

  • A summary of set commands that are accepted by SQL Developer...

    Sorry, I've been looking for a list of commands that are used by SQL Developer such as "set verify off|on", etc. Can anyone point me to a list of these commands (the equivalent to SQL*Plus set commands)? Thanks in advance! Tom

  • JFileChooser DFS and Windows Vista Service Pack 2

    We updated a computer with Vista Service Pack 2 and now JFileChooser is not opening up links that are DFS. To make sure it was not our app I tried using the JFileChooser Demo from Sun and I am still having the same issue. Java will allow me to quick

  • Playing a film on the TV

    Hi. I am trying to play a recently purchased movie (thru iTunes) to play on my TV. It is on my iPad and I have connected it through the iPad cable. My tv shos that have been purchased the same way play perfectly well, just not the movie? I don't have