Multiselect values in onDemand process

Hi, guys.
Is this a complicated approach, or ...?
I have a popUp page with to multiselect list items. I would like to run an OnDemand process when the button is clicked. Everything looks like simple task... However, OnDemand process can't see the multiple values from select list items...
if i do something like this
p_vc_arr2 := HTMLDB_UTIL.string_to_table (:P12_LST);
v_val := HTMLDB_UTIL.table_to_string (p_vc_arr2, ':');
i don't get anything (null)
if i do something like this
(in javascript)
get.add('G_LIST',p_item);
(in OnDemand process)
p_vc_arr2 := HTMLDB_UTIL.string_to_table (:G_LST);
v_val := HTMLDB_UTIL.table_to_string (p_vc_arr2, ':');
i get the first value from multiselect list...
I think there is something simple enough that i missed, but...........
Thnaks in advance for any help...
Mike

function addComponent(p_com)
alert(p_com); // returns all values selected...
var get = new htmldb_Get(null,html_GetElement('pFlowId').value,'APPLICATION_PROCESS=PRC_ADD_COMPONENT',0);
gReturn = get.get();
if (gReturn == "OK")
doSubmit("SUBMIT_ADD_COMP");
pauseComp(2000);
opener.location.reload(true);
close();
else
alert(gReturn);
PRC_ADD_COMPONENT
DECLARE
v_errorcode NUMBER;
v_errormsg varchar2(200);
v_com varchar2(1000);
v_val varchar2(1000);
i number;
p_vc_arr2 htmldb_application_global.vc_arr2;
BEGIN
p_vc_arr2 := HTMLDB_UTIL.string_to_table (:P12_LST_COM);
-- v_com := HTMLDB_UTIL.table_to_string (p_vc_arr2, ':');
for i in p_vc_arr2.first..p_vc_arr2.last loop
v_val := p_vc_arr2(i);
v_com := v_com || ':' || v_val;
end loop;
v_com := SUBSTR(v_com,2);
APEX_UTIL.SET_SESSION_STATE ('P12_HDN_COMMITTEE',v_com);
-- in session state this hidden item is null
.....here is call for a remote package....
commit;
if v_errorcode = 0 then
htp.prn('OK');
else
htp.prn(v_errormsg);
end if;
EXCEPTION
WHEN OTHERS THEN
htp.prn(SQLERRM);
END;

Similar Messages

  • How to pass more than 10 parameters to OnDemand process?

    If have created some application items to use as parameters.
    When I do in my javascript
    get.addParam('F_PAR_REPORT',pReport);
    and I use this parameter in onDemand process as :F_PAR_REPORT , I get
    The requested URL /pls/apex/<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><HTML><HEAD><TITLE>404 Not Found</TITLE></HEAD><BODY><H1>Not Found</H1>The requested URL /pls/apex/wwv_flow.show was not found on this server.<P><HR><ADDRESS>Oracle-Application-Server-10g/10.1.2.0.0 Oracle-HTTP-Server Server at kor.ofisa.ch Port 7777</ADDRESS></BODY></HTML> was not found on this server.
    If I use x01 - x10, with iwwv_flow.g_x01, it works, but I need to pass more that 10 parameters.
    Can anyone give me correct syntax? I remember that before v3, there was a possibility, but I don't remember what it was.
    Igor

    Hi Igor
    I'd recommend that you try the following, as this is how I work around the problem:
    Put your items and values into two delimited strings (use javascript arrays and the join function to simplify the process) and set g_x01 for the items and g_x02 for the values, ensuring each named item has a value and vice versa. On thr processing side use the apex_util.string_to_table function and process them, i.e. set session state etc.
    Hope that helps!
    Cheers
    Matt

  • How to get another page item value in page process.

    Hi all
    i have an after submit process on page 32 to insert into a table.
    and a page 34 where there is a region containing from page 32.
    when page 32 get submitted (process as well as) it contain no value for :P34_USER_ID although i am in page 34 and :P34_USER_ID item have value.
    after submit process on page 32 Type: PL/SQL anonymous block --> have code like...
    INSERT INTO LETTER_ATTACH (LETTER_ID,FILENAME,ATTACHMENT,MIMETYPE,UPDATE_DATE)
    SELECT :P34_USER_ID,:P32_FILE_INPUT,blob_content,mime_type,SYSDATE
    FROM wwv_flow_files
    WHERE NAME = :P32_FILE_INPUT;
    can't find anything wrong...!!?? :(
    please help me on this regards.
    Roman
    Edited by: user13416557 on Aug 27, 2011 1:48 PM

    Hi,
    When you are on page 32, check that there is value on page 34 item session state
    http://download.oracle.com/docs/cd/E23903_01/doc/doc.41/e21674/concept_ses.htm#sthref100
    Regards,
    Jari

  • How to set textfield-values with a process

    Hi.
    I have a form in which the user can fill in some textfields. To ease the usability, there should be a button to set the textfields to predefined values.
    I tried to set the values by implementing the following process:
    BEGIN
    :P2120_VALUE := 100;
    END;
    How can this be realised? What should the "process-point" value of the process be?
    Thanks very much in advance for your help.
    Stephan

    One way to do this would be to set each of the items' Source Used attributes to "Only, ..." and create the process like the one you showed as an after-submit (when button pressed) process then have a branch that goes back to the same page when the button is pressed.
    You should then see the form fields populated with the values established by the process after the branch happens.
    Sometimes with this kind of page logic you have to take care that no after-submit computations, validations, processes, and branches fire when this special button is used, unless you want them to.
    Scott

  • Change Condition Base Value in Billing Process.

    Dear SAP experts
    for now, In third-party process, condtion base value of billing  only come from oder doc's.
    but we want to change condition base value of billing from PO doc's for some condition type.
    (actually, we want PO Quantity as a condition base value in billing process)
    where can i apply alternative solution?
    Regards.
    Juyoung

    HI,
    To elaborate, you can change the condition base value settings in the pricing procedure for the condition type.
    Take help of ABAPer and let him know what exact qty or value you want system to pick up while processing billing docs.
    Prior to do any changes, please also ceck if the new changes are impacting any old logics...
    Hope it helps..
    Regards,
    SB.

  • OIM: Adding MultiSelect Fileds to a process form

    Hi!
    Does anybody know, how can I add a multiselect fields to my process form (like fields "Choose User" and 'Choose Resource' in the Request Creation Wizard)?

    Hi,
    In any process form multiselect can be done only through child form.
    Regards
    Nitesh

  • 'QM value transferring through process messages'

    Hi,
    What exactly 'QM value transferring through process messages' means ?
    Regards,
    Samir

    Hi wadajkar ,
                   When you are using the  PI sheets for the Process mangaement Functionality. Some Of QM realated values can be tranfered through the Process messages. e.g . when process order is confirmed , inspection lot can be sent through the process messages. Some of the below QM related can be processed through process messages
    inspection char
    inspection lot
    inspection result
    inspection short text
    Thanks,
    Rajanikanth

  • Measure optimal values of background processes (RMON,PMON,RECO)?

    Hi buddy's,
    I am facing issue to determin optimal values of oracle EBS R12 background processes like (RMON,PMON,SMON,RECO)?
    I want to determine and find it's maximum optimal values of each process with step by step guide because i am new in oracle.
    My purpose is that if i found the optimal values of all background process then while during tuning it is clear for me to what i want to achieve.
    Kindly help me and clarify this scenario how is it possible ?
    Best Regards,
    Waqar Arif

    Hi,
    You should learn some concepts first because you seem very very very new. RMON,PMON,SMON,RECO are background processes of Oracle database and there isn't anything called "value" associated with them. you can't control them or set any value for them. These are background processed which will rung when your instance will start.
    See bellow for some concepts
    http://docs.oracle.com/cd/B28359_01/server.111/b28318/memory.htm
    Salman
    Edited by: Salman Qureshi on Apr 10, 2013 2:45 PM

  • Precalculated value set in process chanin

    Hi all,
    Can anyone tell me wat is precalculated value set in process chains.
    Regards,
    Khaja.C

    Hi
    Pre calculated value sets are used for reporting purposes. They will act as inputs to queries where variables are used.
    The values maintained in the value set will be substituted in place of variables in the query at runtime and the query output will be generated. This is done in process chain for automation purposes. Usually they are used in conjunction with BEx broadcaster.
    With Regards

  • Use AQ Adapter Header Message ID Value in BPEL Process

    Hi guys,
    I'm trying to obtain the value of the message_id in a header variable created in a receive branch activity linked to an AQ Adapter, i've created the variable in the adapter tab of the receive activity and linked the message type variable with the InBound WSDL of the header. I want to use this message_id value obtained in the dequeue operation to set as correlation_id in a future enqueue. The question is, when i do a copy operation in an assign activity of the message_id in the first header variable (dequeue) to the second header variable (enqueue) the BPEL raises an error telling me that the variable was empty, can you help me with this? Am i doing the whole thing wrong? I'm using the 10g version on R3.
    Thanks a lot!

    Hi Anuj,
    I selected "Receive" while configuring B2B adapter. While creating the BPEL process to receive the message, i have created it as Empty BPEL process "Define WSDL later". Then i configured the B2B adapter. In the Empty BPEL process i place a receive activity and wire the B2B adapter. Operation available in Receive activity is "Receive". I'm i configuring wrongly?
    Thanks,
    Terry

  • How to import a value from HCM process and forms to workflow?

    Hi Experts,
        i am new to HRASR_DT T.Code , I had  designed a form in Form scenario and process in that T.code . I linked that process with workflow. i had the Employee Number field in Form , i want to IMPORT that employee number into my workflow container element.
    Thanks & Regards,
    Malli.

    You use TS17900110 to extract values from the form into the workflow container. For any HCM P&F workflow, you should always start by looking in task group TS17900001. All the HCM P&F-related workflow tasks, etc. are contained there.

  • Multiselect values in "current values" on form load

    Hi,
    I have a multi select field for 30 roles in the form. Now, i want 28 roles to appear on the right hand side (current Roles) on form load and the rest 2 to appear under available Roles.
    How can i do this? Please let me know.
    Thanks,

    Here u go..
    <Field name=':variables.currentroles'>
    <Display class='MultiSelect'>
    <Property name='title' value='Roles'/>
    <Property name='selectedTitle' value='Selected roles'/>
    <Property name='availableTitle' value='Available roles'/>
    <Property name='allowedValues'>
    <ref>:variables.unassignedroles</ref>
    </Property>
    <Property name='allowOthers'>
    <Boolean>true</Boolean>
    </Property>
    </Display>
    </Field>

  • Passing values to a process

    hi everybody
    i'm creating a java ide
    the compile and run options are working file
    however if i want to take input from user using some BufferedReader or DataInputStream classes, i need to send values from my ide to the Process that is executing the 'java' command. How can i do this?
    hope you understand what my problem is:
    the code i'm using to execute java command from my ide is:
    int pos = MainWindow.tabpane.getSelectedIndex();
    String filepath = MainWindow.tabpane.getTitleAt(pos);
    String filecompletepath = MainWindow.tabpane.getToolTipTextAt(pos);
    String javapath = "";
    BufferedReader br = null;
    try {
    br = new BufferedReader(new FileReader("javalocation.options4u"));
    javapath = br.readLine();
    if(javapath==null){
    throw new Exception();
    } catch (Exception exception) {
    JOptionPane.showMessageDialog(null,"I guess java path is not set.\n Go to Action->Java Path...");
    finally{
    try {
    br.close();
    } catch (Exception exception) {
    filepath = filepath.substring(0,filepath.indexOf("."));
    String javafiledir = filecompletepath.substring(0,filecompletepath.lastIndexOf("\\"));
    String runstr = javapath + "\\java -cp \".;" + javafiledir + "\" \"" + filepath + "\"";
    System.out.println(runstr);
    StringBuffer output= new StringBuffer() ;
    InputStreamReader rdr = null;
    try{
         Process pr = Runtime.getRuntime().exec(runstr);
         Thread.sleep(1000) ;
         pr.waitFor();
         InputStream in = pr.getInputStream() ;
         rdr = new InputStreamReader(in);
         br = new BufferedReader(rdr) ;
              String line = "";
              while (true) {
    line = br.readLine();
    if(line==null)
    break;
    else{
              System.out.println(line + '\n');
                        output.append( line +"\n" );
              } catch(Exception exc) {
    JOptionPane.showMessageDialog(null,"I guess java path is not set.\n Go to Action->Java Path...");
              finally { 
    try {
    br.close();
    rdr.close();
    } catch (Exception exception) {
    ResultWindow.txtresult.setText(output.toString());
    }

    Well, you have a process object returned by the exec command, so you should be able to open streams and do reads and writes. No?

  • Is this OnDemand process secure?

    Hello,
    I'm using the jQuery autocomplete method along with an OnDemand application process to return a list of user's based on whats being typed in my input box. I want to make sure that it's not vulnerable to sql injecton. Can anyone tell me if this is safe or not?
    Application Express 3.2.1.00.12
    Here's the code in question.
    Application Process:
    DECLARE
      l_sql VARCHAR2(32000);
    BEGIN
      l_sql := '
       select full_name, position_name, rowid
         from emp
        where 1=1
          and upper(full_name) like ''%'|| upper(apex_application.g_x01) || '%''
       order by 1
      APEX_UTIL.JSON_FROM_SQL(l_sql);
    EXCEPTION
      WHEN OTHERS THEN
        HTP.p ('{"row":[]}');
    END;jQuery:
    <script type="text/javascript">
    $(function(){
    $("#P300_NEXT_APPROVER").autocomplete({
      source: function(r,s){
       $.ajax({
        type:"POST",
        url:"wwv_flow.show",
        dataType:"json",
        data:{
         p_flow_id:$v('pFlowId'),
         p_instance:$v('pInstance'),
         p_flow_step_id:$v('pFlowStepId'),
         x01:$v('P300_NEXT_APPROVER'),
         p_request:"APPLICATION_PROCESS=EmployeeAutocomplete"},
        success:function(d){
         s($.map(d.row,function(l){
          return{
           label:l.FULL_NAME +" - "+ l.POSITION_NAME, number:l.ROWID
      select: function( event, ui ) {
       $( "#P300_NEXT_APPROVER" ).addClass("hide").val("");
       $( "#P300_NEXT_APPROVER_TITLE" ).html( ui.item.label);
       $( "#P300_NEXT_APPROVER_ROWID" ).val( ui.item.number);
       return false;
      delay: 500,
      minlength: 2,
      open:function(){$(this).removeClass("ui-corner-all").addClass("ui-corner-top");},
      close:function(){$(this).removeClass("ui-corner-top").addClass("ui-corner-all");}});
    </script>Thanks in advance,
    Daniel

    Hi,
    You could create application item. Set app item Session State Protection to Restricted - May not be set from browser
    Then change process
    DECLARE
      l_sql VARCHAR2(32000);
    BEGIN
      :MY_APP_ITEM := '%' || upper(apex_application.g_x01) || '%';
      l_sql := '
       select full_name, position_name, rowid
         from emp
        where 1=1
          and upper(full_name) like :MY_APP_ITEM
       order by 1
      APEX_UTIL.JSON_FROM_SQL(l_sql);
    EXCEPTION
      WHEN OTHERS THEN
        HTP.p ('{"row":[]}');
    END;Regards,
    Jari
    My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • Updating Phase for PM notification value after completion process

    Hi,
    I need to update Phase value for a PM notification, after its completion. This process will be triggered by a custom RFC called from PORTAL side. Could you suggest how to update phase value for PM notification confirmation/completion.
    Regards,
    Pulokesh

    Hi,
    Can you tell me where to pass the phase value in the BAPI that you have mentioned. Can anyone tell how to update Notification phase value while its closure/completion.
    Regards,
    Pulokesh
    Edited by: Pulokesh Karmakar on Aug 19, 2009 11:16 AM

Maybe you are looking for

  • MS Outlook on O365 versus FingerPrin​t software or Value Added Package

    Hello all, I have problem - after installing FingerPrint software or Value Added Package some functionality in MS Outlook 2010 on MS O365 system stops working  like planning share meetings. I mean so problem in the Security - this application close s

  • DBcheck get failed from db13 with error BR0301E SQL error -1031

    Hi, I am executing DBcheck from db13 but it gets failed with error "BR0301E SQL error -1031 at location BrDbdiffRead-1, SQL statement". Here is the job logs: Job started Step 001 started (program RSDBAJOB, variant &0000000000424, user ID SVKM_BASIS2)

  • Encore DVD and Group policies....

    Has anyone ever had a problem running Encore DVD 2.0 with group policies applied to a machine? Anyone have any info on Encore DVD 2.0 in relation to group policies? I can't get it to run on a machine with group policies enabled....

  • Not well-formed request to ALSB

    I want to send not well-formed request to AquaLogic Service Bus and to get user-friendly error message. When I send request where one namespace is not defined, for example: <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"

  • Import old FC Pro project into current project library

    I have some old projects in a folder and I'd like to import them into my current library but FC won't let me. Says I have to open the project in Final Cut, buit I can't even do that. Help?