Redirecting an item value to another page..

Hi,
I am trying to auto-populate couple of values on page 2 when I click a button on page 1. Tried setting the item values using the comma separated list and also by re-directing to an url. Hit an issue when the values that need to be set itself contain a comma within itself. Could you let me know if there is any other de-limiter that I can use instead of a comma while setting the item values.
For instance:
There is a button on Page 58. When this button is clicked, I should be redirected to page 45 in the application and the values in P58_Name and P58_LocId should be auto-populated in P45_Name and P_45LocId.
Only when there is NO comma in value of P58_Name, this works fine. But, when there is a comma in P58_Name this is what happens:
P58_Name = Mickey, Mouse
P58_LocId = 145
Once the button is clicked on page 58, the fields in page 45 are auto-populated as below:
P45_Name = Mickey
P45_LocId = Mouse
Will there be a way to use a different de-limiter in the comma separated list? Kindly help.
Thanks,
P

the trouble is that the comma in the item name messes up with Apex URL structure, since it uses a comma separated list of item names and values..
You can set another item with the escaped value of the item in Javascript using the escape function(builtin)
escape( $v('ITEM_NAME'))or in PSLQL using APEX_UTIL.URL_ENCODE or HTF.encode functions
and then refer that new item in the Branch instead of the old one one(with commas)

Similar Messages

  • How to retrieve a page item value in another page?

    Hi,
    how to retrieve a page item value in another page?
    say P55_COURSES_TO_EVALUATE is my page item name and it is a select list.Based on the value selected,in the next page i shd show details related to the selected value and for this i need P55_COURSES_TO_EVALUATE value in the next page.How Do I get it?When I try to retrieve the values it simply returns nothing.
    Any pointers would be really helpful.
    Thanks in advance.

    Hi,
    Could you please tell how you try use it ?
    If you set value to item P55_COURSES_TO_EVALUATE and submit page, value is saved to session state.
    Then you can use that item in any page like
    :P55_COURSES_TO_EVALUATEYou can not access page value in javascript/jQuery from other pages like
    $v('P55_COURSES_TO_EVALUATE')
    document.getElementbyID('P55_COURSES_TO_EVALUATE')
    $(#P55_COURSES_TO_EVALUATE)Because item is not in other pages. In javascript from other pages you can use
    var a = '&P55_COURSES_TO_EVALUATE.';Regards,
    Jari

  • Javascript: to pass values to another page

    hi all,
    i hav an interactive report. if i clik on a particular row, that row values must be passed to an another page (via javascript)
    i found this forum https://forums.oracle.com/thread/2467579 in which they hav used it for sending mail.
    but i wanted to pass those values to another page throug javascript bz, i hav installed a plugin nd wrking from it under right clik.
    ma  javascript function  is,
    function func(action,el, pos)
       window.location ="http://apex.oracle.com/pls/apex/f?p=71510:2:&SESSION.:::2:P2_X,P2_X2:'+ $(el).children('td[headers="EMPNO"]').text() +  ',' + $(el).children('td[headers="ENAME"]').text()";
    here i hav redirected it to the 2nd page and in the 2nd page i hav used 2 items to get these values.
    $(el).children('td[headers="EMPNO"]').text() +        ------->  this is to fetch the empno of that particular row and similarly for the name.
    but if i click on the right clik button , no action is happening... 
    but its working fine, if i use the function as,
    function func(action,el, pos)
       window.location ="http://apex.oracle.com/pls/apex/f?p=71510:2:&SESSION.";
    so somewhere is going wrong in passing the values in URL i suppose....
    and i hav used al d above things in
    http://apex.oracle.com/pls/apex/f?p=71510:1 (username: test / paswrd: pex14gm)
    pls help me out.....
    thanks in advance

    Try like this.
    function func(action,el, pos){
        var empNum = $(el).children('td[headers="EMPNO"]').text();
        var eName  = $(el).children('td[headers="ENAME"]').text();
        window.location ='http://apex.oracle.com/pls/apex/f?p=71510:2:&SESSION.:::2:P2_X,P2_X2:'+empNum+','+eName;
    It looks simple and neat.
    If you still didn't get post me workspace details.

  • Passing multiple values to another page via a sql report

    Having trouble passing multiple values to another page via a popup SQL report
    I have two fields one called "descr" and another called "Met"
    when I use the code below all works fine and the value of "descr" is passed
    Select '<a href="javascript:popUp2('''
    || 'f?p=&APP_ID.:950:&SESSION.::&DEBUG.::'
    || 'P950_TYPE:'
    || descr
    || ''', 790, 460);"style="color:darkred; font-weight: bold;font-size: 90%">'
    || descr
    || '</a>' "Note"
    But when I want to pass another value, all goes bonkers and instead of the value of the field being passed the literal text is passed.
    can someone look at my code below and see what may be wrong
    Select '<a href="javascript:popUp2('''
    || 'f?p=&APP_ID.:950:&SESSION.::&DEBUG.::'
    || 'P950_TYPE,P950_CODE:'
    || descr, Met
    || ''', 790, 460);"style="color:darkred; font-weight: bold;font-size: 90%">'
    || descr
    || '</a>' "Note"
    I appeciate your help looking into this
    FYI (Here is the entire SQL for reference)
    With t
    as
    (SELECT
    CASE WHEN KEY = 2 then
    CASE WHEN WCS_CPT > :P940_METRIC_1_WCS_CPT1 then
    '<span style="color:Red; ">'||TO_CHAR(WCS_CPT,'FML999G999G999G999G990D00')||'</span>' else
    '<span style="color:#399304; ">'||TO_CHAR(WCS_CPT,'FML999G999G999G999G990D00')||'</span>' end
    else '<span style="color:#180c8b;">'||TO_CHAR(WCS_CPT,'FML999G999G999G999G990D00')||'</span>' end "WCSCPT",
    CASE WHEN KEY = 2 then
    CASE WHEN WCS_TOI_PER_FTE < :P940_METRIC_2_WCS_TOI_PER_FTE then
    '<span style="color:Red; ">'||TO_CHAR(WCS_TOI_PER_FTE,'999G999G999G999G990')||'</span>' else
    '<span style="color:#399304; ">'||TO_CHAR(WCS_TOI_PER_FTE,'999G999G999G999G990')||'</span>' end
    else '<span style="color:#180c8b;">'||TO_CHAR(WCS_TOI_PER_FTE,'999G999G999G999G990')||'</span>' end "WCSTOIPERFTE",
    CASE WHEN KEY = 2 then
    CASE WHEN WCS_SIO_PER_FTE < :P940_METRIC_3_WCS_SIO_PER_FTE then
    '<span style="color:Red; ">'||TO_CHAR(WCS_SIO_PER_FTE,'999G999G999G999G990')||'</span>' else
    '<span style="color:#399304; ">'||TO_CHAR(WCS_SIO_PER_FTE,'999G999G999G999G990')||'</span>' end
    else '<span style="color:#180c8b;">'||TO_CHAR(WCS_SIO_PER_FTE,'999G999G999G999G990')||'</span>' end "WCSSIOPERFTE",
    CASE WHEN KEY = 2 then
    CASE WHEN WCS_TC_PER_FTE < :P940_METRIC_4_WCS_TC_PER_FTE then
    '<span style="color:Red; ">'||TO_CHAR(WCS_TC_PER_FTE,'999G999G999G999G990')||'</span>' else
    '<span style="color:#399304; ">'||TO_CHAR(WCS_TC_PER_FTE,'999G999G999G999G990')||'</span>' end
    else '<span style="color:#180c8b;">'||TO_CHAR(WCS_TC_PER_FTE,'999G999G999G999G990')||'</span>' end "WCSTCPERFTE",
    CASE WHEN KEY = 2 then
    CASE WHEN WCS_ADSL_PER_FTE < :P940_METRIC_5_WCS_DSL_PER_FTE then
    '<span style="color:Red; ">'||TO_CHAR(WCS_ADSL_PER_FTE,'999G999G999G999G990')||'</span>' else
    '<span style="color:#399304; ">'||TO_CHAR(WCS_ADSL_PER_FTE,'999G999G999G999G990')||'</span>' end
    else '<span style="color:#180c8b;">'||TO_CHAR(WCS_ADSL_PER_FTE,'999G999G999G999G990')||'</span>' end "WCSADSLPERFTE",
    CASE WHEN KEY = 2 THEN
    TO_CHAR(MONTH,'MON-YY')
    else
    'METRICS'
    end "MONTH"
    FROM (
    SELECT DISTINCT
    ROW_NUMBER() OVER (ORDER BY KEY DESC) AS ROW_NUM, KEY, WCS_CPT, WCS_TOI_PER_FTE, WCS_SIO_PER_FTE, WCS_TC_PER_FTE, WCS_ADSL_PER_FTE, MONTH
    from TW_M_KEYMETRICS
    WHERE TO_DATE(UPPER(MONTH),'DD/MON/YY') >= TO_DATE(UPPER(:P940_START_OF_THIS_FIN_YEAR),'DD/MON/YY')
    ORDER BY KEY ASC, ROW_NUM, MONTH)
    WHERE ROW_NUM <= :P940_MONTHS_SINCE_FIN_START)
    Select '<a href="javascript:popUp2('''
    || 'f?p=&APP_ID.:950:&SESSION.::&DEBUG.::'
    || 'P950_METRIC_TYPE,P950_METRIC_VALUE:descr,MET'
    || ''
    || ''', 790, 460);"style="color:darkred; font-weight: bold;font-size: 90%">'
    || descr
    || '</a>' "Note"
    , max(Met) METRICS, max(Jul) Jul08, max(Aug) Aug08, max(Sep) Sep08, max(Oct) Oct08, max(Nov) Nov08, max(Dec)Dec08, max(Jan) Jan08, max(Feb) Feb08, max(Mar) Mar08, max(Apr) Apr08, max(May) May08, max(Jun) Jun08
    from (
    Select 'Cost Per Transaction' descr,
    decode (MONTH, 'METRICS', WCSCPT) MET,
    decode (MONTH, 'JUL-08', WCSCPT) Jul,
    decode (MONTH, 'AUG-08', WCSCPT) Aug,
    decode (MONTH, 'SEP-08', WCSCPT) Sep,
    decode (MONTH, 'OCT-08', WCSCPT) Oct,
    decode (MONTH, 'NOV-08', WCSCPT) Nov,
    decode (MONTH, 'DEC-08', WCSCPT) Dec,
    decode (MONTH, 'JAN-08', WCSCPT) Jan,
    decode (MONTH, 'FEB-08', WCSCPT) Feb,
    decode (MONTH, 'MAR-08', WCSCPT) Mar,
    decode (MONTH, 'APR-08', WCSCPT) Apr,
    decode (MONTH, 'MAY-08', WCSCPT) May,
    decode (MONTH, 'JUN-08', WCSCPT) Jun
    from t
    union all
    Select 'Total Orders Issued Per FTE' descr,
    decode (MONTH, 'METRICS', WCSTOIPERFTE) MET,
    decode (MONTH, 'JUL-08', WCSTOIPERFTE) Jul,
    decode (MONTH, 'AUG-08', WCSTOIPERFTE) Aug,
    decode (MONTH, 'SEP-08', WCSTOIPERFTE) Sep,
    decode (MONTH, 'OCT-08', WCSTOIPERFTE) Oct,
    decode (MONTH, 'NOV-08', WCSTOIPERFTE) Nov,
    decode (MONTH, 'DEC-08', WCSTOIPERFTE) Dec,
    decode (MONTH, 'JAN-08', WCSTOIPERFTE) Jan,
    decode (MONTH, 'FEB-08', WCSTOIPERFTE) Feb,
    decode (MONTH, 'MAR-08', WCSTOIPERFTE) Mar,
    decode (MONTH, 'APR-08', WCSTOIPERFTE) Apr,
    decode (MONTH, 'MAY-08', WCSTOIPERFTE) May,
    decode (MONTH, 'JUN-08', WCSTOIPERFTE) Jun
    from t
    union all
    Select 'SIOs Per Billing FTE' descr,
    decode (MONTH, 'METRICS', WCSSIOPERFTE) MET,
    decode (MONTH, 'JUL-08', WCSSIOPERFTE) Jul,
    decode (MONTH, 'AUG-08', WCSSIOPERFTE) Aug,
    decode (MONTH, 'SEP-08', WCSSIOPERFTE) Sep,
    decode (MONTH, 'OCT-08', WCSSIOPERFTE) Oct,
    decode (MONTH, 'NOV-08', WCSSIOPERFTE) Nov,
    decode (MONTH, 'DEC-08', WCSSIOPERFTE) Dec,
    decode (MONTH, 'JAN-08', WCSSIOPERFTE) Jan,
    decode (MONTH, 'FEB-08', WCSSIOPERFTE) Feb,
    decode (MONTH, 'MAR-08', WCSSIOPERFTE) Mar,
    decode (MONTH, 'APR-08', WCSSIOPERFTE) Apr,
    decode (MONTH, 'MAY-08', WCSSIOPERFTE) May,
    decode (MONTH, 'JUN-08', WCSSIOPERFTE) Jun
    from t
    union all
    Select 'Total Calls Answered per FTE' descr,
    decode (MONTH, 'METRICS', WCSTCPERFTE) MET,
    decode (MONTH, 'JUL-08', WCSTCPERFTE) Jul,
    decode (MONTH, 'AUG-08', WCSTCPERFTE) Aug,
    decode (MONTH, 'SEP-08', WCSTCPERFTE) Sep,
    decode (MONTH, 'OCT-08', WCSTCPERFTE) Oct,
    decode (MONTH, 'NOV-08', WCSTCPERFTE) Nov,
    decode (MONTH, 'DEC-08', WCSTCPERFTE) Dec,
    decode (MONTH, 'JAN-08', WCSTCPERFTE) Jan,
    decode (MONTH, 'FEB-08', WCSTCPERFTE) Feb,
    decode (MONTH, 'MAR-08', WCSTCPERFTE) Mar,
    decode (MONTH, 'APR-08', WCSTCPERFTE) Apr,
    decode (MONTH, 'MAY-08', WCSTCPERFTE) May,
    decode (MONTH, 'JUN-08', WCSTCPERFTE) Jun
    from t
    union all
    Select 'ADSL Orders per FTE' descr,
    decode (MONTH, 'METRICS', WCSADSLPERFTE) MET,
    decode (MONTH, 'JUL-08', WCSADSLPERFTE) Jul,
    decode (MONTH, 'AUG-08', WCSADSLPERFTE) Aug,
    decode (MONTH, 'SEP-08', WCSADSLPERFTE) Sep,
    decode (MONTH, 'OCT-08', WCSADSLPERFTE) Oct,
    decode (MONTH, 'NOV-08', WCSADSLPERFTE) Nov,
    decode (MONTH, 'DEC-08', WCSADSLPERFTE) Dec,
    decode (MONTH, 'JAN-08', WCSADSLPERFTE) Jan,
    decode (MONTH, 'FEB-08', WCSADSLPERFTE) Feb,
    decode (MONTH, 'MAR-08', WCSADSLPERFTE) Mar,
    decode (MONTH, 'APR-08', WCSADSLPERFTE) Apr,
    decode (MONTH, 'MAY-08', WCSADSLPERFTE) May,
    decode (MONTH, 'JUN-08', WCSADSLPERFTE) Jun
    from t
    GROUP by descr
    Frank

    Borg Species 5618 wrote:
    Having trouble passing multiple values to another page via a popup SQL report
    But when I want to pass another value, all goes bonkers and instead of the value of the field being passed the literal text is passed.
    can someone look at my code below and see what may be wrong
    Select '<a href="javascript:popUp2('''
    || 'f?p=&APP_ID.:950:&SESSION.::&DEBUG.::'
    || 'P950_TYPE,P950_CODE:'
    || descr, Met
    || ''', 790, 460);"style="color:darkred; font-weight: bold;font-size: 90%">'
    || descr
    || '</a>' "Note"
    Hi Frank,
    You should close this parameters with single quotation. Try this -
    Select '<a href="javascript:popUp2('''
    || 'f?p=&APP_ID.:950:&SESSION.::&DEBUG.::'
    || 'P950_TYPE,P950_CODE:'
    *|| 'descr, Met'*
    || ''', 790, 460);"style="color:darkred; font-weight: bold;font-size: 90%">'
    || descr
    || '</a>' "Note"
    Hope this helps.
    Regards,
    M Tajuddin
    http://tajuddin.whitepagesbd.com

  • Set item value at other page via URL-redirect

    Hi, I have a button and I want to open a new window with it using an url-target.
    </br>
    </br>
    javascript:window.open ('f?p=&APP_ID.:143:&SESSION.::NO:143:P143_KDT_ID,P143_MESSAGE:&P140_KDT_ID.,&P140_MESSAGE.') </br>
    </br>
    When I use branching I get an error that there is no page to branch to. I don't understand why. As a workaround I use an url-redirect when the button is pressed, but I'm stuck on getting the current item value into the target page. I tried using $v('P140_MESSAGE') but I can't get the url valid.

    Jacob,
    The problem was that when the HTML for the button is rendered, the value of P1_ITEM from session state was "glued in" to the generated URL at that time. If you then entered a value for the iterm, even though your onChange AJAX technique changed the value in session state it was too late to change the already generated HTML for the button, specifically the URL target for the button.
    I created a Set Item2 button on your page with this for the URL attribute:
    javascript:window.open('f?p=&APP_ID.:2:&SESSION.::NO::P2_ITEM:' + document.getElementById('P1_ITEM').value);
    Let me know if that does what you need.
    There is another problem and I don't know the cause. When you click the button, it opens the new window properly but leaves the original page in an error state of some kind. I could not reproduce this in my application using the same js, so I'll be interested in how you solve that.
    Scott

  • Passing values to another page with %

    I have a button that redirects to another page in my application. I am passing the value of one my fields to the target page via <Set These Items> and <With These Values>. The source field has a % at the end of it. When the value gets passed to the target, the % is not passed. Is there a problem passing values with % in them?
    Here is the passing parameter list:
    Set These Items: P22_DB_NAME
    With These values: &P2_DB_NAME.
    The value of P2_DB_NAME is "ESB%". When it gets to the target page it is "ESB".

    Brian,
    you will need to encode the percent sign and use
    %25
    instead of
    Make your button an url and use this link. It will replace the percentage with the encoded value and pass the value to the specified item.
    redirect('f?p=&APP_ID:22:&SESSION.::::P22_DB_NAME:'+$x('P2_DB_NAME').value.replace(/%/, '%25'));
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    ------------------------------------------------------------------------------

  • Process - Pass values to another page

    Procedure for passing parameters.
    Hi
    I have a report region on my page, where the each record have a checkbox to reference a Identifier..
    I want to pass all identifiers referring to the checkbox selected to another page.
    For this I created an item called: P20010_NIVEIS_SEL .. I put the values in it and his step to another item on another page.
    But is not working.
    The process is this:
    DECLARE
    BEGIN
      IF htmldb_application.g_f01.COUNT <= 1 THEN
          : P20010_NIVEIS_SEL: = htmldb_application.g_f01 (1);
      ELSE
        FOR i IN 1 .. htmldb_application.g_f01.COUNT LOOP
          : P20010_NIVEIS_SEL: =: P20010_NIVEIS_SEL | | ',' | | htmldb_application.g_f01 (i);
        END LOOP;
          : P20010_NIVEIS_SEL: = SUBSTR (: P20010_NIVEIS_SEL, 2,: P20010_NIVEIS_SEL.LENGTH);
      END IF;
    END;It´s importante say that to pass the parameters I created a branch to another page, where while the contents of an item to another.
    This giving an error:
    ORA-01008: not all variables are limitedthanks

    Hi,
    Quickly I noticed few mistake. I did not test this, but you could
    DECLARE
    BEGIN
      IF apex_application.g_f01.COUNT <= 1 THEN
          :P20010_NIVEIS_SEL := apex_application.g_f01(1);
      ELSE
        FOR i IN 1 .. apex_application.g_f01.COUNT LOOP
          :P20010_NIVEIS_SEL := :P20010_NIVEIS_SEL | | ',' | | apex_application.g_f01(i);
        END LOOP;
          :P20010_NIVEIS_SEL := SUBSTR(:P20010_NIVEIS_SEL, 2,LENGTH(:P20010_NIVEIS_SEL));
      END IF;
    END;Br,Jari

  • Passing the values to another page.

    Hi all,
    In the first column of the report is radio buttons
    After selecting the radio button of a row and pressing the button view, has to go the next page where i can view the full details of the row.
    How i should pass the values of the selected row in the view button.
    In other words
    How to refer the report items when pressing a button.
    For eg:
    If i say in URL Target like.....
    javascript:redirect('f?p=&APP_ID.:3:&SESSION.:DISPLAY:NO::P3_ACC_NO:' +#id#+)
    if i put #id# the value is not appearing..
    Could any one please guide me ?
    Thanks in advance
    bye
    Srikavi

    Hello,
    >> only if it is the primary key as you mentioned it is appearing.but, if i put an non-pk column it is not appearing.
    I’m not sure what you mean by that. The onclick event will always set your hidden item according the any database column. In my example it’s ‘empno’, but I don’t see any reason to use any other column in the row. Anyway, the reason to use PK as the passes parameter is that with the PK you can retrieve the entire record on your next page, and use any column you need from the record.
    If I misunderstood you’ please be more descriptive about the problem.
    Regards,
    Arie.

  • Passing multiple values to another page

    I am somewhat new to Coldfusion 9 in a IIS platform through Dreamweaver CS4 and could use some direction.  I am working on a form where someone has submited a request for approval.  The user has requested a bulk approval button for all users that fall under certain filter conditions to do a mass approve ( setting the value to 1).  I have not been able to either pass the values to the current approval method or approve them on the existing page.  Below is the coding for the page as I have it.
    After the filter has applied I need to get the values of the #qRecords.VR_Machine_Participant_Activity_Login_ID# and have them all approve as apposed to doing them individually which they are doing now.  I have looked at several methods, but they are not meeting my needs.  Some information cut for space but left the form action.
    <form name="form1" method="post">
        <table width="996" border="1">
         <tr class="ReportColumnHeadingSmall">
          <td width="150">Approval Needed</td>
          <td width="100">Approved</td>
                            <td width="180">Business Unit</td>                    
         </tr>
         <tr class="data0Small">
          <td>
           <select name="cboApprovalRequired" class="smallFont">
            <!---<option value="All">All</option>--->
                     <option value="1"
             <cfif isDefined("vApprovalRequired")>
              <cfif vApprovalRequired eq 1>
                selected
              </cfif>
             </cfif>
            >True</option>
                     <option value="0"
             <cfif isDefined("vApprovalRequired")>
              <cfif vApprovalRequired eq 0>
                selected
              </cfif>
             </cfif>
            >False</option>
           </select>
          </td>
          <td>
           <select name="cboApproved" class="smallFont">
            <!---<option value="All">All</option>--->
                     <option value="1"
             <cfif isDefined("vApproved")>
              <cfif vApproved eq 1>
                selected
              </cfif>
             </cfif>
            >True</option>
                     <option value="0"
             <cfif isDefined("vApproved")>
              <cfif vApproved eq 0>
                selected
              </cfif>
             </cfif>
            >False</option>
           </select>
          </td>
                              <!--- Drop down showing the current available units to choose from --->
                             <td>
                       <select name="cbo_BusUnit" id="cbo_BusUnit">
                            <cfoutput query="qBusUnit">
                             <option value="#qBusUnit.BusinessUnit#"
                            <cfif (isDefined("vBusUnit") AND vBusUnit is qBusUnit.BusinessUnit)>selected                               </cfif>>#qBusUnit.BusinessUnit#</option>
                              </cfoutput>
                            </select>
                          </td>
    <!--- This is where I'd like to mark the items for approval. --->
                            <td><input type="submit" name="Submit" value="Apply Filter">
                            </td>                       
          <td width="450" align="right">
            This will approve all records displayed on the current page.
                              <input name="bVr_id" type="button" value="Approve">
      <cfoutput query="qRecords"><a href=   "vr_participantactivityapproval.cfm?participant=#qRecords.VR_Machine_Participant_Activity _Login_ID#">
        <img src="../Images/switch_user.gif" alt="Approve" width="16" height="16" border="0"></a>
        </cfoutput>
    </td>
         </tr>
         <tr class="ReportColumnHeadingSmall">
                         <td colspan="3" height="20"></td>
                        </tr>
        </table>
    <table width="996" border="1">
    <tr class="ReportColumnHeadingSmall">
        <td></td>
        <td>Machine or<br>Activity Type</td>
        <td>Activity</td>
        <td>Comments</td>
        <td>Oper.<br>ID</td>
        <td>Name</td>
        <td>Approved</td>
        <td>Login Status</td>
        <td>Login Date Time</td>
        <td>Minutes</td>
    </tr>
    <cfoutput query="qRecords">
    <tr class="data#Int(qRecords.CurrentRow MOD 2)#Small">
    <td>
                        <!--- Current method of approving them individually. --->    
    <a href="vr_participantactivityapproval.cfm?participant=#qRecords.VR_Machine_Participant_Act ivity_Login_ID#"><img src="../Images/switch_user.gif" alt="Approve" width="16" height="16" border="0"></a>
      </td>
      <td class="SmallFont">#qRecords.ActivityType#</td>
    <td class="SmallFont">#qRecords.Activity#</td>
        <td class="SmallFont">#qRecords.Value_Nvarchar#</td>
    <td class="SmallFont">#qRecords.VR_Department_Number#</td>
    <td class="SmallFont">#qRecords.FullName#</td>
    <td class="SmallFont"><cfif #qRecords.Approved# IS 0>False<cfelse>True</cfif></td>
        <td class="SmallFont">#qRecords.Login_Status#</td>
        <td class="SmallFont">#DateFormat(qRecords.Login_Date, 'ddd mm/dd/yyyy')# #TimeFormat(qRecords.Login_Date, 'H:mm')#</td>
        <td class="SmallFont">#qRecords.TotalTime#</td>
    </tr>
    </cfoutput>
    </table>
        </form>

    I suggest displaying all the potential approvees as checked checkboxes.  The user can then uncheck as many as he wants.

  • Read field value from another page

    Hallo,
    I have PAGE1.HTM (with MVC) with 2 input fields (country and state). For field STATE there´s a F4-button which calls PAGE2.HTM (page with logic) and in order to display the correct information for states I need to get the value in field country.
    I cannot send the value from page1.htm because the code is client-side for F4 (specially if it changes) and I cannot use
    var = document.getElementById("country");
    in page2.htm because it´s Javascript code inside ABAP code, which is not allowed (I think).
    Does somebody have an idea on how to collect that value or if I can use Javascript code in the event OnInitialization ??
    Thanks a lot

    Hi,
    that´s something I do when the content of the view is created and works Ok. The values of that content come from the data bank. The problem is when the user enters a new value and does not saves it !! in this case, the new value is not transmited to PAGE2.HTM because now we´re on client side.
    This is the code that creates the input field:
          tag_if  = cl_htmlb_inputfield=>factory( id = s_id
                                                 value = fieldname
                                                 visible = isvisible
                                                 disabled = isdisabled
                                                 isappendunit = 'True'
                                                 showhelp = dfies-f4availabl
                                                 dovalidate = 'TRUE'
                                                 onvaluehelp = openf4code ).
    and as far as I know, input field supports no event.

  • Select list need to pass a value to collect information based on a value on another page

    i have a product-detail.php page that is then sent to a cart.php i have a number of tables that are all joined and show in the statement below. the results are displayed on the detail page
    $var1_rsProduct = "-1";
    if (isset($_GET['productID'])) {
      $var1_rsProduct = $_GET['productID'];
    mysql_select_db($database_beau, $beau);
    $query_rsProduct = sprintf("SELECT * FROM beauAW13_Cat, beauAW13_products, beauAW13_Stock, beauAW13_SizeList WHERE beauAW13_products.catID = beauAW13_Cat.catID AND beauAW13_products.ProductID = beauAW13_Stock.ProductID AND beauAW13_Stock.SizeID = beauAW13_SizeList.SizeID AND beauAW13_products.ProductID = %s AND beauAW13_Stock.Stock != 0 ", GetSQLValueString($var1_rsProduct, "int"));
    $rsProduct = mysql_query($query_rsProduct, $beau) or die(mysql_error());
    $row_rsProduct = mysql_fetch_assoc($rsProduct);
    $totalRows_rsProduct = mysql_num_rows($rsProduct);
    i have a select list that needs to show the sizes.this is shown below
    <select name="select" id="select">
                    <?php
    do { 
    ?>
                    <option value="<?php echo $row_rsProduct['StockID']; ?>"><?php echo $row_rsProduct['Size']?></option>
                    <?php
    } while ($row_rsProduct = mysql_fetch_assoc($rsProduct));
      $rows = mysql_num_rows($rsProduct);
      if($rows > 0) {
          mysql_data_seek($rsProduct, 0);
                $row_rsProduct = mysql_fetch_assoc($rsProduct);
    ?>
                  </select>
    it is currently passing the value of <?php echo $row_rsProduct['StockID']; ?>
    which is ok as this is a totally unique number so on the cart page i need to get all the size information from that stockID
    here is an example:-
    i have used a stockID of 355
    on the cart.php the stockID is echoed out as 355 and the size is echoed out as 355 which is what i would expect.
    the stock table looks like this
    StockID | ProductID | SizeID  |  Stock
      355   |    582    |   14    |    5
    so
    ProductID is blue jumper
    Stock id is unique number
    SizeID = 14 = once size
    Stock = 5 in stock
    so i need to in the cart say
    355 = 14 = one size
    i can then echoe out the correct size as one size and not 355
    i really hope someone can help
    thanks

    Thanks for everyone advise. I managed to get it working
    I sent the stockID on;y to the cart page, made a new variable based on the stockID the made a query and got all the information based on the new stockID variable
    <?php
    $newStockID = $XCart_StockID = ${$XCName}["contents"][0][$XCart__i];
    mysql_select_db($database_beau, $beau);
    $query_rsSize = "SELECT * FROM beauAW13_SizeList, beauAW13_Stock WHERE beauAW13_Stock.SizeID = beauAW13_SizeList.SizeID AND beauAW13_Stock.StockID = '$newStockID'";
    $rsSize = mysql_query($query_rsSize, $beau) or die(mysql_error());
    $row_rsSize = mysql_fetch_assoc($rsSize);
    $totalRows_rsSize = mysql_num_rows($rsSize);
                              ?>
    select list
    <option value="<?php echo $row_rsProduct['StockID']; ?>"><?php echo $row_rsProduct['Size']?></option>

  • In portlets, how to use a html form passing  values to the another page?

    it is well known that in web developing , we have two methods to pass values to another page.<!--
    1. passing values
    2.<form action="nextPage" method ="post"></form>-->
    but how to use two methods in oracle portal portlets?
    I have got a simple example which submit two values to the page for itself, means a page has a form with submit botton, user input the form with values and then submit them by submit botton, then the page recevice those values and show it .
    this example is powered by oracle ,
    please have a look at these code:
    <br><br>
    <%@ page contentType="text/html;charset=UTF-8" %>
    <%@page import="java.util.*, oracle.portal.provider.v2.*" %>
    <%@page import="oracle.portal.provider.v2.http.HttpCommonConstants" %>
    <%@page import="oracle.portal.provider.v2.render.PortletRendererUtil" %>
    <%@page import="oracle.portal.provider.v2.render.PortletRenderRequest" %>
    <%@page import="oracle.portal.provider.v2.render.http.HttpPortletRendererUtil" %>
    <%@page import="oracle.portal.provider.v2.url.UrlUtils" %>
    <%
    // The form submit URL refers to the current Portal page. All portlets
    // on this page share this URL. This means that the per portlet parameters
    // are in the same request. Portlets must ensure that its paramerters don't
    // collide either with other portlets or other instances of itself. This
    // is generally accomplished by using "fully-qualified" parameter names. A
    // fully-qualified parameter name prepends the (unique) portlet reference to
    // the parameter. The JPDK provides a utility to accomplish this.
    String portletParamName = "mName";
    String portletParamAge = "mAge";
    String portletParamSubmit = "mSubmit";
    String fName = HttpPortletRendererUtil.portletParameter(request, portletParamName);
    String fAge = HttpPortletRendererUtil.portletParameter(request, portletParamAge);
    String fSubmit = HttpPortletRendererUtil.portletParameter(request, portletParamSubmit);
    // These are the session attribute names used to store the current values.
    // Because all instances of this portlet share the same user session we must
    // also fully-qualify these names to avoid collisions.
    String sName = HttpPortletRendererUtil.portletParameter(request, "sName");
    String sAge = HttpPortletRendererUtil.portletParameter(request, "sAge");
    PortletRenderRequest pRequest = (PortletRenderRequest)
    request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    String formName = UrlUtils.htmlFormName(pRequest,null);
    ProviderUser user = pRequest.getUser();
    ProviderSession providerSession = user.getSession();
    if (providerSession == null)
    %>
    Your provider session has been terminated or has timed out
    and you need to logout and then login to re-establish the session.
    <%
    else
    // Record, in session storage, the last values submitted.
    if (pRequest.getQualifiedParameter(portletParamSubmit) != null)
    providerSession.setAttribute(sName, pRequest.getQualifiedParameter(portletParamName));
    providerSession.setAttribute(sAge, pRequest.getQualifiedParameter(portletParamAge));
    %>
    <!-- Output the HTML content -->
    <center>
    <table width="70%">
    <tr>
    <td>
    <b>This portlet shows how to post and process information from HTML forms.</b>
    </td>
    </tr>
    </table>
    <form name="<%= formName %>" method="POST"
    action="<%= UrlUtils.htmlFormActionLink(pRequest,UrlUtils.PAGE_LINK) %>">
    <%= UrlUtils.htmlFormHiddenFields(pRequest,UrlUtils.PAGE_LINK, formName) %>
    <table>
    <tr>
    <td>
    <b>Name :</b>
    </td>
    <td>
    <input type="text" size="20" name="<%= fName %>" value="">
    </td>
    </tr>
    <tr>
    <td>
    <b>Age : </b>
    </td>
    <td>
    <input type="text" size="3" name="<%= fAge %>" value="">
    </td>
    </tr>
    </table>
    <br>
    <INPUT TYPE=submit name="<%= fSubmit %>" Value="Submit">
    </form>
    <%
    if ((providerSession.getAttribute(sName) == null)&& (providerSession.getAttribute(sAge) == null)) {
    %>
    <b>No values have been submitted yet.</b>
    <%
    } else {
    %>
    <b> Last submitted values:</b><br>
    <table>
    <tr>
    <td>
    <b>Name: </b>
    </td>
    <td>
    <b><%= providerSession.getAttribute(sName) %></b>
    </td>
    </tr>
    <tr>
    <td>
    <b>Age: </b>
    </td>
    <td>
    <b><%= providerSession.getAttribute(sAge) %></b>
    </td>
    </tr>
    </table>
    <%
    %>
    </center>
    <%
    %>
    <br><br>
    <br><br>
    <br><br>
    but I want to write the form in a page , and then show it on another page , how to write it ?
    I have read the pdk:
    oracle.portal.provider.v2.url Classes
    UrlUtils
    then I use these method , as this :
    //frist page:
    <br><br><br><br>
    <%@page contentType="text/html; charset=Big5"
    import="oracle.portal.provider.v2.render.PortletRenderRequest"
    import="oracle.portal.provider.v2.http.HttpCommonConstants"
    %>
    <%@ page import="oracle.portal.provider.v2.*"%>
    <%@ page import="oracle.portal.provider.v2.render.PortletRendererUtil"%>
    <%@ page import="oracle.portal.provider.v2.render.http.HttpPortletRendererUtil"%>
    <%@ page import="oracle.portal.provider.v2.url.UrlUtils"%>
    <%
    PortletRenderRequest pReq = (PortletRenderRequest)
    request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    %>
    <P>Hello <%= pReq.getUser().getName() %>.</P>
    <P>This is the <b><i>Show</i></b> render mode!</P>
    this is a program to test the passing value
    <%
    String portletParamName = "mName";
    String portletParamAge = "mAge";
    String portletParamSubmit = "mSubmit";
    String fName = HttpPortletRendererUtil.portletParameter(request, portletParamName);
    String fAge = HttpPortletRendererUtil.portletParameter(request, portletParamAge);
    String fSubmit = HttpPortletRendererUtil.portletParameter(request, portletParamSubmit);
    PortletRenderRequest pr=(PortletRenderRequest)request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    String formName=UrlUtils.htmlFormName(pr, null);
    %>
    <form name="<%=formName%>" method="post" action="<%=UrlUtils.htmlFormActionLink("/htdocs/passingvalues4/getValues.jsp")%>">
    <%= UrlUtils.htmlFormHiddenFields("/htdocs/passingvalues4/getValues.jsp") %>
    name:<input type="text" size="20" name="<%= fName %>" value="">
    p w :<input type="text" size="3" name="<%= fAge %>" value="">
    <INPUT TYPE=submit name="<%= fSubmit %>" Value="Submit">
    </form>
    //getValues.jsp<br><br>
    <br><br>
    <%@page contentType="text/html; charset=Big5"
    import="oracle.portal.provider.v2.render.PortletRenderRequest"
    import="oracle.portal.provider.v2.http.HttpCommonConstants"
    %>
    <%@ page import="oracle.portal.provider.v2.*"%>
    <%@ page import="oracle.portal.provider.v2.render.PortletRendererUtil"%>
    <%@ page import="oracle.portal.provider.v2.render.http.HttpPortletRendererUtil"%>
    <%@ page import="oracle.portal.provider.v2.url.UrlUtils"%>
    <% String portletParamName = "mName";
    String portletParamAge = "mAge";
    String portletParamSubmit = "mSubmit";
    String fName = HttpPortletRendererUtil.portletParameter(request, portletParamName);
    String fAge = HttpPortletRendererUtil.portletParameter(request, portletParamAge);
    String fSubmit = HttpPortletRendererUtil.portletParameter(request, portletParamSubmit);%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=Big5">
    <title>untitled</title>
    </head>
    <body>
    Name:<%=fName%>
    Age :<%=fAge%>
    </body>
    </html>
    <br>then I deployed them on the portal , run it , the result is :after I submit it , the browser give me : http 404 page not found!
    [b]here is the provider.xml<br>[b[i]]<?xml version = '1.0' encoding = 'UTF-8'?>
    <?providerDefinition version="3.1"?>
    <provider class="oracle.portal.provider.v2.DefaultProviderDefinition">
    <session>true</session>
    <passAllUrlParams>true</passAllUrlParams>
    <portlet class="oracle.portal.provider.v2.DefaultPortletDefinition">
    <id>1</id>
    <name>PassingValues4</name>
    <title>PassingValues4</title>
    <description>PassingValues4</description>
    <timeout>60</timeout>
    <showEditToPublic>false</showEditToPublic>
    <hasAbout>false</hasAbout>
    <showEdit>false</showEdit>
    <hasHelp>false</hasHelp>
    <showEditDefault>false</showEditDefault>
    <showDetails>false</showDetails>
    <renderer class="oracle.portal.provider.v2.render.RenderManager">
    <renderContainer>true</renderContainer>
    <renderCustomize>true</renderCustomize>
    <autoRedirect>true</autoRedirect>
    <contentType>text/html</contentType>
    <showPage>/htdocs/passingvalues4/PassingValues4InputPage.jsp</showPage>
    <showPage>/htdocs/passingvalues4/getValues.jsp</showPage>
    </renderer>
    </portlet>
    </provider>
    <br><br><br>
    <br><br>
    would you kind enough to help me ? thanks!!!
    Message was edited by:
    moonsoft

    Hi Moonsoft,
    I have already answered this query in the other post at Re: how to link more than one links in portlet?(jsp develop)
    <form name = "showPageForm" method = "POST" action = "<%= UrlUtils.htmlFormActionLink(pReq,UrlUtils.PAGE_LINK) %>">
      <%= UrlUtils.htmlFormHiddenFields(pReq,UrlUtils.PAGE_LINK, "showPageForm") %>
      <input type="text" name="param1">
      <input type="text" name="param2">
      <input type="hidden" name="myPPN" value="/htdocs/page2.jsp">
    </form>then in your jsp code on page2.jsp, you will extract the parameters by specifying
    <%
      String p1 = request.getParameter("param1");
      String p2 = request.getParameter("param2");
    %>
    >>this is easy common jsp or asp development, but in oracle is too diffcult!!!!
    :-) .. there is a difference between web-applications and portlets, you just need to get used to it once. I hope this does clarify your doubts.
    thanks,
    Harsha

  • Tab to a page with item values

    Hi all,
    I want to create a Tab, and it goes to page and set an item value in this page.
    I found out Tab has the only option that it goes to a page, but no item value can be set.
    I can achieve it by using List Entry, which provides the ability of going to a page and set item value. But I want to create a Tab instead of a List Entry.
    Any suggestion?

    Hi
    Have you tried creating parent tabs as you can set item values with those...?
    Cheers
    Ben

  • Display Distinct Item Value

    Hello All,
    I am having an problem displaying a distinct value for Item 'PK_EMPL_ID'. I need all the Items below because I am passing these values to another page in APEX. But I need help with this select statement syntax.
    SELECT hs.pk_session_id,
           hsp.pk_session_process_id,
           hs.fk_class_id,
           hsm.pk_empl_id,
           hsm.last_name || ', ' || hsm.first_name studentname,
           dg.department_group_descr,
           pd.department_descr,
           hsm.fk_dept_group,
           hsm.fk_dept_code,
           hsp.fk_empl_id,
           hs.session_meridiem,
           hsn.session_name,
           hs.session_date,
           hsp.session_process_status
        FROM   hrt_session hs,
               hrt_session_name hsn,
               hrt_session_process hsp,
               hrt_student_master hsm,
               cobr.department_group dg,
               cobr.pps_department pd
        WHERE  hsn.pk_session_name_id = hs.fk_session_name_id
           AND hsp.fk_session_id = hs.pk_session_id
           AND hsp.fk_empl_id = hsm.pk_empl_id
           AND hsm.fk_dept_group = dg.pk_department_group_id
           AND hsm.fk_dept_code = pd.pk_department_idMy output is like:
    -PK_EMPL_ID-
    JOHN
    JOHN
    JOHN
    BOBBY
    JAMES
    I only want to display each 'PK_EMPL_ID' value once when the select statement is executed, not duplicate values. I have tried distinct, group by etc... but I am having trouble since I am using multiple tables using these foreign keys. I have viewed a few threads but they are only handling one or two item values from one table. Can anyone assist me with please? Thanks ahead of time.

    Hi,
    Whenever you have a question, post a little sample data (CREATE TABLE and INSERT statements) for all tables, and the results uyou want from that data.
    You may have a clear idea of where you're coming from, and where you want to go, but the description alone doesn't convey that clear idea to us.
    You can also rephrase your question in terms of some commonly available table, like scott.emp.
    For example: "I'm doing this query on scott.emp:
    {code}
    SELECT      job
    ,     deptno
    FROM     scott.emp
    {code}
    How can I get only 1 row per distinct job?"
    Without sample output, the question is still vague.
    There are 14 rows in scott.emp.
    You can reduce the output to 9 rows by changing "SELECT" to "SELECT *DISTINCT* ":
    SELECT DISTINCT
         job
    ,     deptno
    FROM     scott.emp
    ;which produces:
    OB           DEPTNO
    MANAGER           20
    PRESIDENT         10
    CLERK             10
    SALESMAN          30
    ANALYST           20
    MANAGER           30
    MANAGER           10
    CLERK             30
    CLERK             20But that's as far as you can go without changing the results.
    For example, all three departments have MANAGERs. If you want only 5 rows of outptu (one for each of the 5 distinct jobs), then which deptno do you want?
    If you want the lowest one, here's one way to do that:
    WITH     got_rnum     AS
         SELECT     job
         ,     deptno
         ,     ROW_NUMBER () OVER ( PARTITION BY  job
                                   ORDER BY          deptno
                           ) AS rnum
         FROM    scott.emp
    SELECT     job
    ,     deptno
    FROM     got_rnum
    WHERE     rnum     = 1
    ;Output:
    JOB           DEPTNO
    ANALYST           20
    CLERK             10
    MANAGER           10
    PRESIDENT         10
    SALESMAN          30There are other apprioaches to this problem, too. The advantage of this one is that it works well with any number of columns in the output.

  • Setting an item value before print report in BI Publisher

    Hi,
    I am having an issue with setting a page item's value once a button (that prints a BI Publisher report) is pressed. The session state for the item is set, however because the page does not re-load no value appears in the item on the page.
    I am using a button as a page Item and using a Page Branch with the Branch Point set as On Submit: After Processing(After Computation, Validation, and Processing) with the Page set to 0 and the Request set to PRINT_REPORT=REPORT
    Is there any way to set the item value on the page before branching to the report?
    Your help is greatly appreciated.
    -Marsha

    Marsha,
    You can do that as follows:
    1- create a hidden text item (P20_date_hidden) with default value set to sysdate.
    2- for your button >> edit >> Buttom display attributes >> attributes >> type in : onFocus= "set_date();" (( note: am using onFocus because it takes places before onClick ))
    3- In your page >> edit >> HTML header >> type in :
    <script language="JavaScript" type="text/javascript">
    function set_date()
    v_date = $x('P20_DATE_HIDDEN').value;
    $x('P20_DATE_LETTER_SENT').value = v_date;
    </script>
    Hope this helps,
    Sam
    Please reward good answers by marking them correct or useful!

Maybe you are looking for

  • How to navigate with the keyboard in album view?

    Hello Is there a better way to navigate through the albums and then select/control tracks within an "open" Album in Album-View without using the mouse than what I am trying to describe below? iTunes is idle. switch to album view (shortcut to switch v

  • Migration Assistant (PC to Mac) and Shared iTunes Account

    New Mac user here (other than iPhone), so be gentle. So a couple of issues I need input on/help with, I'll try to keep it as short as possible. The short version is this...my wife and I both have iPhones which we've managed using a single iTunes acco

  • IPod music rescue problem

    I'm not sure if this is the correct forum, but bear with me. All my iTunes and ipod were synced on my old PC which essentially just died (go figure). So I bought a Mac Book. I want to sync my ipod to my iTunes on my Mac so I can delete folders and su

  • Screen Shot Upload and stores in database table

    Dear all, I have a scenario in that I should able to upload the screen shot in the database tables for webdynpro application. Please let me know how can I acheive this task. Thanks & Regards, Ramu

  • Custom validation template

    Hello, I have issue with validation template. Order Management Super User ->Setup->Rules->Security->Validation templates I made own validation template. It is the same like "Regular Line". I run Tools -> Create validation packages. After this I go to