Pass parameter to VC from workflow

Hi,
We created a Visual Composer application which we would like to call from a workflow. If we don't pass a parameter to the VC, it works, when we pass one, it doesnu2019t work.
Our Visual Composer application expects an input value called WI_ID.
We would like to call this Visual Composer aplication via an iView launched from a workflow item.
Our task is TS90000138 and its visualization contains DYNPARAM: wi_id=${item.externalId}.
If we execute this task, &iviewDynamicParameter=wi_id%3d000005985089&wi_id=000005985089 is added to the URL, but the value is not passed on to the VC application, because as explained in http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/2090414b-cd20-2a10-d594-8de9d146044a, Visual Composer expects &_paramsXmlStr_=<Params><Row%20WI_ID="5984427"/></Params>.
We tried two options:
Option 1:
change the task visualization to paramsXmlStr=<Params><Row%20WI_ID="${item.externalId}"/></Params>, but this results in the following line in the UWL XML (after re-registering the UWL WebFlowConnector and deleting the cache):
<Property name="iviewDynamicParameter" value="_paramsXmlStr_=&lt;Params>&lt;Row%20WI_ID=&quot;${item.externalId}&quot;/>&lt;/Params>"/>
which is not a valid XML format due to the < and > signs.
Option 2:
encode the string as explained on http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2090414b-cd20-2a10-d594-8de9d146044a?QuickLink=index&overridelayout=true and enter paramsXmlStr=%3CParams%3E%3CRow%20WI_ID%3D%22${item.externalId}%22%20/%3E%3C/Params%3E into the task visualization.
When we execute this "the encoding gets encoded" and we get the following URL, which doesn't work either:
&_paramsXmlStr_%3D%253CParams%253E%253CRow%2520WI_ID%253D%2522000005985097%2522%2520%2F%253E%253C%2FParams%253E&iviewDynamicParameter=_paramsXmlStr_%3D%253CParams%253E%253CRow%2520WI_ID%253D%2522000005985097%2522%2520%2F%253E%253C%2FParams%253E
As explained on http://help.sap.com/saphelp_nw70/Helpdata/en/45/a7863f445f4617e10000000a114084/content.htm, there are only 3 pamaters (ID, CONFIRM, DYNPARAM) and no other one can be used.
Do you know how to fix this issue?
Thanks,
Tamas

Hello Tamas,
I did succeed to call a Visual Composer model from the UWL (using workflow tasks coming from our ERP 6 backend).
I did customised UWL workflow task (within the portal) :
<Property
name="iviewDynamicParameter"
value="WI_ID=${item.externalId}"/>
  <Property
name="iview"
value="pcd:portal_content/pcc_portal_application/.../xxx.uwl_task_VC"/>
Parameter WI_ID (WorkItem Id) is automatically sent by the portal system.
I set, in VC, a start point with a string data parameter called WI_ID.
When calling the model this parameter WI_ID is filled.
Hope it could help.
Rgds
Gilles

Similar Messages

  • How to pass parameter /1BCDWB/DOCPARAMS from webdynpro?

    Hi Experts,
    We create a wdp view and indert an adobe form into it. And this form has an interface based on XML schema.
    Now we want to translate this form into multi-language, and in wdp side, we will display diffenent language version of form for different regions.
    I found that there is a paramater /1BCDWB/DOCPARAMS-LANGU, and it seems can control the language version in processing.
    But I donot know how to pass parameter /1BCDWB/DOCPARAMS from wdp to adobe form.
    Its my 1st to use adobe form and wdp, i really have no way out. Any advice will be Appreciated.
    Thank you.
    Richard

    @sahai: Hey no , I am using very very simple example without any query or complex statement. I just have 2 radio buttons in VIEW1. On clicking the radio button, the naviagtion to view2 is done and the value of selected radio button is passed as a parameter in the plug.
    In the view2 , i just have a caption in my layout where i am displaying the parameter value by setting the attribute.THe warning i get is in view2. Here is the code. Apart from this there is no coding in view2.
    METHOD HANDLEPLUG_IN_V2 .
        DATA:
          NODE_CAPT_MSG                       TYPE REF TO IF_WD_CONTEXT_NODE,
          ELEM_CAPT_MSG                       TYPE REF TO IF_WD_CONTEXT_ELEMENT,
          STRU_CAPT_MSG                       TYPE IF_VIEW2=>ELEMENT_CAPT_MSG ,
          ITEM_MSG                            LIKE STRU_CAPT_MSG-MSG.
    *   navigate from <CONTEXT> to <CAPT_MSG> via lead selection
        NODE_CAPT_MSG = WD_CONTEXT->GET_CHILD_NODE( NAME = `CAPT_MSG` ).
    *   get single attribute
        NODE_CAPT_MSG->SET_ATTRIBUTE(
          EXPORTING
            NAME =  `MSG`
            VALUE = PAR_1 ).
    ENDMETHOD.

  • Pass parameter to portlet from jspx page

    Hello guys, i have one question about portlet. Curently i have 2 application, 1 weblogic portal application and 1 portlet producer application. Both project was successfully setup. I already put 1 portlet created in the portlet producer into 1 page in the weblogic portal application. The problem is, how can i pass parameter from weblogic portal page (which i call the portlet) to the portlet. Thank you

    Hi,
    worth checking the WebCenter forum as both products seem to belong there: WebCenter Portal
    Frank

  • Pass parameter to Action0 from VbScript & Read it in Action0

    Hello, Anyone please can you give me example of how can I pass parameter from vbScript to Action0 of UFT 11.53 and read it in Action0.

    i tried your soluation
    <managed-bean>
    <managed-bean-name>testBacking</managed-bean-name>
    <managed-bean-class>checklist.TestBacking</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    <managed-property>
    <property-name>testValue</property-name>
    <property-class>java.lang.String</property-class>
    <value>${param.myParam}</value>
    </managed-property>
    </managed-bean>
    it return to me in the getter method for the testValue the experssion as string ${param.myParam} but if i put ${param.myParam} it return value.
    please advice.
    Regards
    Mohd.Weshah

  • Passing Parameter to Report from a JSP

    <p>I have a report which calls a Oracle stored procedure which requires some  IN parameters. These parameters need to be passed from the JSP. For this scenario if someone has some sample code please post it.</p><p>Thanks.<br /></p><p>&#160;</p>

    <p>In the scenario you described the report that connects to the stored procedure will automatically require parameters so they can be passed to the stored procedure.</p><p>Here is a link to a sample that passes a parameter to a report at runtime using BusinessObjects Enterprise XI R2:</p><p>http://diamond.businessobjects.com/node/1018 </p><p>Rob Horne<br /><a href="/blog/10">Rob&#39;s blog - http://diamond.businessobjects.com/blog/10</a></p>

  • URGENT:How to pass parameter to page from java portlet

    Hi,
    All i need to do is to pass a parameter from my custom java portlet to an omniportlet. Is it achievable? If so, please point me direction!
    Thanks,
    Ceren

    Hmm yeah or else you could use java.net.URLEncoder.encode(String s) to encode it automatically.
    (java.net.URLDecoder.decode(String s) decodes btw)

  • Pass parameter to form from webpage?

    Hi guys,
    I'm aware that you are able to pass parameters between forms using CALL_FORM (using parameter list).
    Is it possible to pass parameters to a form from the webpage?

    i am trying to pass the parent_id as a parameter to a portal page but am not able to... i can add it to the list of in parameters to the PL/SQL based parent id but when i add the parent id to the url then i get no result... i created a custom attribute for the parent id since there is no attribute build other then page group and page id... when I set the Parent ID attributes default value in the attribute properties of the item type based on PL/SQL it just brings back results for the default value and if i pass a different value for ithe parent id i dont get the correct result I get the result for the default parent id.
    I am using the followin url to pass the parent id
    http://localhost:7778/portal/page?_pageid=76,87832&_dad=portal&_schema=PORTAL&parentid=22223

  • Passing parameter value back from Child region [BTF] to Parent

    Hello,
    I am using Jdev 11.1.1.6. I have a use-case where I need to pass value back from child taskflow to parent.
    Let me elaborate the use-case:
    I have a main page which is implemented as BTF with fragment. This main page contains a child region [again a BTF with fragment].
    I am passing a parameter value from parent page to it's region using taskflow input parameter. Now value for one of the parameter changes inside child/region taskflow and I need to make this value available to main page taskflow.
    This parameter is just pageFlowScope variable, so basically not coming from any VO.
    I know that taskflow can return value via return parameter but I don't know if that is true for taskflow implemented as region in a page.
    Is it possible to communicate the pageFlowScope variable value from child region to it's parent page?
    Thanks,
    Jai

    Hi Frank,
    I tried to follow steps mentioned in your post but encountered error that "The scope of the referenced object #{viewScope.parentBeanName} is shorter than referring object childBeanName"
    Let me explain what I did:
    1. Created a bean parentBeanName in viewScope
    2. Created another bean childBeanName in pageFlowScope
    3. In ChildBean.java, created a private property parentBeanProperty for Class [ParentBean] and generated the accessors
    4. Created a input parameter in region TF as:
    <input-parameter-definition id="__28">
          <name id="__27">parentBeanParam</name>
          <value>#{pageFlowScope.childBeanName.parentBeanProperty}</value>
          <class>ParentBean</class>
          <required/>
    </input-parameter-definition> 5. Since my mainPage contains child page as region. I added parameter to mainPageDef to pass it to child TF, like this
    <parameter id="parentBeanParam" xmlns="http://xmlns.oracle.com/adfm/uimodel"
                       value="#{viewScope.parentBeanName}"/>6. Introduced a client method in childBeanName that is called from UI. There I am retrieving parentBeanParam instance from pageFlowScope and call setter method of my variable inside ParentBean.java
    7. Ran the page but encountered the error.
    Did I miss something somewhere?
    Initially I got error where #{viewScope.parentBeanName} returned NULL due to parentBeanName not instantiated. I created a variable in mainPageDef with it's default value pointing to #{viewScope.parentBeanName.variableName}, which I guess will instantiate the bean in viewScope.
    After this I got error of shorter scope. It never reached to code in Step 6 during execution cycle.
    FYI - My application is based on UIShell and essentially a one page application. Main page referred above is also a jsff based on BTF. I hope, this should not affect this implementation but I thought of at least mention it.
    Thanks,
    Jai
    Edited by: Jai Om on Dec 18, 2012 2:38 PM

  • Passing Parameter to AbstractPortalComponent from Iview

    Hi All,
    i am trying to pass a parameter from iview so that i can retrieve in abstract portal component as
    request.getParameer("parameterName") ;
    Do any body know how to configure parameter for Iview created by
    New From Par -> iview .Please pass the code.
    advance thanks
    kaushik

    Hi,
    Code for your question
    package com.sapportal.training.portal;
    import com.sapportals.portal.prt.component.*;
    public class FirstPortalComponent extends AbstractPortalComponent
         public static final String PARAMETER_NAME = "name";
         public static final String HELLO_STRING = "HELLO_THERE";
         public static final String HELLO_STRING_END = "!!!";
        public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
              response.setContentType(PortalComponentContentType.HTML);
              String myName = request.getParameter(PARAMETER_NAME);
              String hello_string ="";
              // = HELLO_STRING + myName + HELLO_STRING_END;
              if(myName !=null){
                   hello_string = HELLO_STRING + myName + HELLO_STRING_END;
              response.write("<h3>" + hello_string + "</h3>");
              response.write("<form method = 'post'>");
              response.write("<p>Name:<input type = 'text' name='" + PARAMETER_NAME + "'size='20'></p>");
              response.write("<p><input type = 'submit' value='submit' name='mysubmit'></p>");
              response.write("</form>");
    Reward useful answers

  • Passing parameter to report from form using RUN_REPORT_OBJECT method

    Will you please let me know how to do this. I tried using run_product but it is giving error as too many declarations. So I decided to use RUN_REPORT_OBJECT, but no help is provided how to pass paramters to this routine from FORMS to REPORTS.

    If you just want to change the heading of a column dynamically, you can go with any of the two options. For both the options, you need to remove the static text and replace it with any dummy field (ensure the reference of field w.r. to repeating frame)
    1. Use the Format Trigger and change the heading to either "school" or "college" based on your field value.
    Ex.
    If :<field_name> = 'S'
    then :dummy_field := 'School'
    Else
    :dummy_field := 'College'
    End If;
    Return (true)
    2. Another option is similar to this and uses a CF.
    (I would prefer CF).
    Warm Regards,
    Raja.

  • PASSING PARAMETER TO REPORTS FROM FORMS...

    I have one form called empform, by clicking a button i want to run report.
    I have created a record_group by name emprec,
    i am using same query for my report also with dame parameter.
    My when button pressed trigger has following,
    DECLARE
    pl_id ParamList;
    BEGIN
    pl_id := Get_Parameter_List('tmpdata');
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List( pl_id );
    END IF;
    pl_id := Create_Parameter_List('tmpdata');
    Add_Parameter(pl_id,'EMPQRY',DATA_PARAMETER,'EMPREC');
    *** empqry=query name on which report and record group is based***
    Run_Product(REPORTS, 'g:\cl2\vatdata\emprep', SYNCHRONOUS, RUNTIME,FILESYSTEM, pl_id, NULL);
    END;
    but when i am clicking button to run report.
    it is asking parameter again before displaying report.
    Please let me know where i am doing mistake...
    Thanks in advance..

    Hi!
    To suppress Oracle Reports native Parameter Form just add:
    add_parameter( pl_id, 'pARAMform', text_parameter, 'NO' );
    Andrew Velichko
    Brainbench MVP for Oracle Developer 2000 http://www.brainbench.com
    null

  • Passing multiple character values from parameter form to PL/SQL

    Hi,
    I am passing multiple character values from parametr form into
    the report query and a PL/SQL procedure. It works fine with the
    query, when I use &variable. But, it doesn't compile in PL/SQL,
    so I just used the :variable, but not getting any records in the
    PL/SQL procedure. Any suggestions?
    sincerely,
    gj

    gj / Fedro,
    Only using the &referecne, you can pas a string / multiple character values and this would work for query only.
    The bind parameter in PL/SQL wouls support only single value
    Thanks
    The Oracle Reports Team

  • Issue on How to mimic Deski document from CMS to local machine, pass parameter, execute and save in a mutiple report format then store in a network drive.

    Post Author: usaitconsultant
    CA Forum: JAVA
    Would you know if there's a way to mimic Deski
    document from BOXI server(CMS) to local machine, pass parameter, execute and
    save in a mutiple report format then store in a local drive or network
    drive? Most examples and tutorials in BO XI R2 I've seen are scheduling while drilling report is for web intelligence only and not desktop intelligence.  Please let me know your ideas. I would really appreciate your help. Thanks.

    Post Author: usaitconsultant
    CA Forum: JAVA
    Hi Ted,
    Thanks for the reply.The file is not available in the server. Though, I checked CMS and I found an instance in history tab and the status is failed with error below. 
                Error Message:
                A variable prevented the data provider Query 1 with BANRRD30 from being refreshed. (DMA0008).When I checked my codes, I found out that the object Im using is for web intelligence data provider. However, I cannot find any documentation and example for passing parameter values in desktop intelligence data provider. Any idea on this? You think this is not suported by Report Engine SDK?Thanks.    

  • Pass parameter to background job from report

    Hi All,
    I have following requirement.
    I am executing a Report. At end of report I am executing an event.
    On the bases of event a background job runs.
    Problem is that, I want to pass one field data from report to background job.
    I already tested SET PARAMETER/GET PARAMETER is not working.
    Is there any way any one can suggest, without using Tables.
    Regards

    Hi,
    If you submit via job it will not be executing the program ..After SUBMIT statement the control will come to the program immediately..
    Check this example..
    DATA: p_jobcnt LIKE tbtcjob-jobcount,
          l_release(1) TYPE c.
    Open the job
    CALL FUNCTION 'JOB_OPEN'
         EXPORTING
              jobname          = 'ZMY_OBJ'
         IMPORTING
              jobcount         = p_jobcnt
         EXCEPTIONS
              cant_create_job  = 1
              invalid_job_data = 2
              jobname_missing  = 3
              OTHERS           = 4.
    Submit the job.
    SUBMIT ztest_program VIA JOB 'ZMY_OBJ' NUMBER p_jobcnt
           TO SAP-SPOOL WITHOUT SPOOL DYNPRO
           WITH destination = 'LOCL'
           WITH immediately = space
           WITH keep_in_spool = 'X' AND RETURN.
    Close the job.
    CALL FUNCTION 'JOB_CLOSE'
         EXPORTING
              jobcount             = p_jobcnt
              jobname              = 'ZMY_OBJ'
              strtimmed            = 'X'
              prdmins              = 15
         IMPORTING
              job_was_released     = l_release.
    Thanks,
    Naren

  • Passing parameter to the i18n text from xml view in fiori app

    Hi,
    Could somebody let me know how to pass parameter to get the i18n text inside xml view of a Fiori app.
    For e.g. inside my i18n properties file i have a entry like:
    PEC_ISSUE={0}issues of total{1}
    inside xml i use it like {i18n>PEC_ISSUE}
    but now how do i pass those 2 parameters to this ??
    i know in javascript it works with , (comma) but does not work in xml. Any help...
    Thanks,
    Ashish

    Hi Michele,
    I found it. Below is the example from my coding.
    <Text      text="{parts: [{path: 'i18n>PEC_to'}, {path: 'promoprocsteps>RetailPromotionSalesFromDate_E'},
                                                           {path:'promoprocsteps>RetailPromotionSalesToDate_E'}],
                                                           formatter: 'retail.promn.promotioncockpit.utils.Formatter.formatDatesString'}"  />
    So you have to create a formatter and pass all the strings to the formatter and then do it inside JS.
    In JS you do it in this way:
    i18n.getText(i18String, [newString, string2]);
    i hope this helps.
    Regards,
    Ashish

Maybe you are looking for