Dynamic Dialog in a Dialog Participant Step for Workflow

Hello All,
I am trying to create a Dynamic Dialog in the dialog participant step for a workflow.
so when a user has the Dialog participant step opened up, if they select from a drop down, it will make another textfield hide/show.
In a component dialog I can do something like
var comment = this.find('name', './jrc:content/customComment')[0] to find the field to be shown/hidden.
however when I run this inside a Dialog Participant step, the result is undefined.
Any Sugguestion on how to approach this ?
I am using a listener on the dropdown widget/attribute

Hello,
The find() method will not help you because it searches the property based on configured value which you can not pass in your scenario. If you dont have any constraint with your hide/show field then best way it to configured it with a property "id" (String) and give it some unique value which has not been used by any component in this dialog and then use below method to find out the component.
this.getComponent(id)
when you pass the "id" value the method will return that component and then you can show/hide it.
I have used this approach many times which is easy and fast to find out the component in any container.
Let me know if you face any issue.
Thanks,
Pawan

Similar Messages

  • How to capture comments and read in next participent steps in Workflow?

    I want to capture comments in one of the participent steps of my workflow and read them in the next step . Please share some suggestions on it .
    I have added a from step as the participent step but it is saving data with random ids . I am not able to figure out how to read the data for corresponding process step in the workflow ?
    Please help .

    had to write Java process for the same
    Just in case somebody wants a java version of the answer Sham mentioned above
    please feel free
    HistoryItem previousHistoryItem;
    String stepType;
    this.workItem = item;
    this.workflowSession = session;
    this.history = workflowSession.getHistory(workItem.getWorkflow());
    Iterator<HistoryItem> historyIterator = history.iterator();
    while(historyIterator.hasNext()){
        previousHistoryItem = historyIterator.next();
        stepType = previousHistoryItem.getWorkItem().getNode().getType();
        if(stepType != null && stepType.equals(WorkflowNode.TYPE_PARTICIPANT) && previousHistoryItem.getWorkItem().getMetaDataMap().get("someproperty",String.class) != null){
            someproperty=previousHistoryItem.getWorkItem().getMetaDataMap().get("someproperty",String .class);
            log("\n someproperty : " + "\n" + someproperty);
        }else{
            log("\nNo Step type or someproperty Found...");

  • Baby steps for workflow

    what would be your recommended steps for
    1) learning Workflow, Builder, OAI and Warehouse Builder
    2) What topology would you recommend for development/ production environments

    Hi,
    Check the following links:
    http://www.sapbrainsonline.com/TUTORIALS/TECHNICAL/WORKFLOW_tutorial.html
    http://sap-img.com/workflow/sap-workflow.htm
    http://sapmaterial.com/workflow.html
    Regards,
    Bhaskar

  • Steps for workflow

    Hi all
    I would like to create a workflow. THis is inititated when a particular object's is create event is triggered. Can someone brief me the steps needed for this, with the transaction codes . ( should i create a container here )

    Hi,
    Check the following links:
    http://www.sapbrainsonline.com/TUTORIALS/TECHNICAL/WORKFLOW_tutorial.html
    http://sap-img.com/workflow/sap-workflow.htm
    http://sapmaterial.com/workflow.html
    Regards,
    Bhaskar

  • Dialog Participant Step

    Hi Guys,
                Reaching out to you for help and guidance. I have been working on workflows and as a part of that effort I have to provide an interface to the Participant to enter some inputs (JIRA ID and Comment). The idea is to take these inputs and integrate with the jira system. I am working with Dialog Participant Step for this effort. I have created a dialog which shows up when a particpant advances the workflow from his inbox. I am not able to tie up this dialog with a java process where I can capture the inputs via metaData object. The post parameters and error is as below.
    The POST request params are as below:
    cmd=advance
    _charset_=utf-8
    :status=browser
    route-/etc/workflow/instances/2012-01-18/model_237097001523152/workItems/node2_etc_workflo w_instances_2012-01-18_model_237097001523152=261752321
    item=/etc/workflow/instances/2012-01-18/model_237097001523152/workItems/node2_etc_workflow _instances_2012-01-18_model_237097001523152
    ./metaData/jiraId=1234
    ./metaData/jiraComment=jira%20Comment
    ./metaData/PROCESS=com.att.ecom.cq.bundle.workflow.CustomWorkflow
    ./metaData/PROCESS_AUTO_ADVANCE=true
    ./metaData/PROCESS_AUTO_ADVANCE%40Delete=true
    comment-/etc/workflow/instances/2012-01-18/model_237097001523152/workItems/node2_etc_workf low_instances_2012-01-18_model_237097001523152=
    Error received: (Per Firebug)
    Error while processing /content/geometrixx/en/products/circle
    Status
    500
    Message
    javax.jcr.nodetype.ConstraintViolationException: no matching property definition found for {}jiraComment
    Location
    /content/geometrixx/en/products/circle
    Parent Location
    /content/geometrixx/en/products
    Path
    /content/geometrixx/en/products/circle
    Referer
    http://dhruva.admin.cingular.net:7001/shopcms/libs/cq/workflow/content/inbox.html
    ChangeLog
    Go Back
    Modified Resource
    Parent of Modified Resource
    Please let me know if my approch is right in doing it this way, if not need some advice on the alternate approch. I could not get any documentation on DialogParticipant Step. Any references to it would help.
    Thanks & Regards
    Rama.

    Murali,
      I am not sure to what extent you have gone through with your dialog participant step. But for implementing a dialog participant step few steps below.
    1. You would be creating a dialog with some text fields
         Note: Make sure the names of the each input element and also any hidden elements starts with ./jcr:content/<nameofcomponent>. Else you would encounter the error that I mentioned above. ConstraintViolation error.
    2. Create a model with this dialog as first step via dialog participant step.
    3. Once you run this workflow on a payload you would see an action item in the workflow inbox.
    4. right click and complete the step. Your dialog pops up embeded with in out of the box dialog. Input some vals in the input forms and complete the workflow. You should see a POST call in firebug which tries to POST the vals that you have entered in the dialog on to the pay load path in the jcr repository. The property name is the name you defined for the text field (or any other component) and value that you have entered.
    At the end of the workflow you should see that the vals that you have entered in your dialog are registered on the payload's jcr:content path. Once this happens you can add a next step in the workflow which would be a java process step which can read these vals from the <payload>/jcr:content and process further.
    Let me know if that gives you an idea of what needs to be done. For sure it would be a trial and error way to deal with and not lots of ppl are out there who can help with the workflow aspect of CQ. If you are given the task of working with workflows in your work, i would just welcoome you saying welcome to the land of unkown .
    Rama.

  • Dialog Participant step problem when completed with CQ Sidekick

    Hi,
    I got the problem that the dialog that is used in a Dialog participant step isn't displayed correctly when i complete the Step via the CQ Sidekick. If i complete the step from the User inbox the dialog is rendered correctly. To make it clear : if i use the CQ Sidekick to complete the Step then i can only enter the next step and a comment and not the additional fields that should be added because of the dialog.
    My first guess is that my dialog.xml isn't correct but i can't find the Problem. What is your experience with the Dialog Praticipant step?
    This is the dialog i use:
    <?xml version="1.0" encoding="UTF-8"?>
    <jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
        jcr:primaryType="cq:Panel">
        <items jcr:primaryType="cq:WidgetCollection">
            <title
                jcr:primaryType="cq:Widget"
                border="{Boolean}true"
                collapsed="{Boolean}false"
                collapsible="{Boolean}false"
                fieldLabel="Bullet Points"
                name="./listItems"
                typeHint="String"
                xtype="multifield">
                <fieldConfig
                    jcr:primaryType="nt:unstructured"
                    maxLength="{Long}50"
                    minLength="{Long}1"
                    separator=""
                    xtype="textfield"/>
            </title>
        </items>
    </jcr:root>
    Thank you

    You can do this via the Workflow/WorkItem Metadata. https://dev.day.com/docs/en/cq/5-5/workflows/wf-ref/workflow_steps.html explains how to access the metadata. if the reviewer needs to be set dynamically (the dalog does not allows that), follow Ram Atmakur's post at http://forums.adobe.com/message/4317233 .

  • Dialog not visible from sidekick when using dialog participant step

    I am using the Out of the box dialog participant step in my workflow. I have created a dialog and using in the dialog participant step. When i start the workflow, the dialog is only available/visible when I complete the task from inbox and not visible when completing the task from sidekick.
    Any suggestions/pointers are Appreciated.
    Environment : CQ 5.5, Windows 7

    Unfortunately, It is known issue.  Please file daycare & provide the business importance & a schedule.

  • I am trying to connect Garritan Personal Symphony to Logic Express and Garageband. A dialog box pops up and asks for plugin Garritan-P. Where do I find it and what do I do with it. I can't locate this plugin doing searches on any of the porgrams.

    I am trying to connect Garritan Personal Symphony to Logic Express and Garageband. A dialog box pops up and asks for plugin Garritan-P. Where do I find it and what do I do with it. I can't locate this plugin doing searches on any of the porgrams.

    I'm not sure which version of Garritan Personal Orchestra you have or when you are getting a window pop-up, but check this link for starters:
    http://afjohnston.blogspot.com/2009/11/using-garritan-personal-orchestra-gpo.htm l

  • How to don't display dialog after send data on BPC for Excel?

    Dear experts,
    I don't want to display dialog after send data on BPC for Excel, how can I do that?
    OS: MS XP SP2
    OFFICE : 2003
    BPC : 7.5 NW

    Hi,
    You need to change the macro assigned to the standard button. There are few macros available. You can try them and see which one suits you the best.
    MNU_eSUBMIT_REFSCHEDULE_BOOK_CLEARANDREFRESH: Sends workbook and clears data and refreshes workbook.
    MNU_eSUBMIT_REFSCHEDULE_BOOK_NOACTION: Sends data without clearing or refreshing the worksheet.
    MNU_eSUBMIT_REFSCHEDULE_BOOK_NOACTION_SHOWRESULT: Sends data without clearing or refreshing the worksheet, and shows the result in a window upon successful send.
    MNU_eSUBMIT_REFSCHEDULE_BOOK_NODIALOG_SHOWRESULT: Sends active book without any dialog and show result box.
    MNU_eSUBMIT_REFSCHEDULE_BOOK_REFRESH: Sends workbook and refreshes data.
    MNU_eSUBMIT_REFSCHEDULE_SHEET_CLEARANDREFRESH: Sends data and clears and refreshes the worksheet.
    MNU_eSUBMIT_REFSCHEDULE_SHEET_NOACTION: Sends data without clearing or refreshing.
    MNU_eSUBMIT_REFSCHEDULE_SHEET_REFRESH
    Hope it helps.

  • Form Participant Step.

    Hi All, Back again with my qns to experts.
    My qn is related to Form Participant workflow. I wanted to work with Form Participant as I think it gives me a flexiblity to work with java script as against with dialog participant step.
    What I did:
    1. I create a page with some text fields.
    2. Created a workflow model with choosing this page as a part of form participant Step.
    3. Kicked off a workflow
    4. Came to my workflow inbox.
    5. Right click on my action item in the inbox and choose complete.
    6. Here I was expecting to have some sort of an interaction with my form/page that I have associated my participant workflow step with. But I dont see my form but just an out of the box dialog with next step and comment.
    So,
    1. Is it the right approch?
    2. Choosing a 'page' as part of my step is right one or should I be creating my form differently?
    3. Or my interaction with the page would be some where else and not from the inbox.
    Any suggestions here would help.
    Thanks and Regards
    Rama.

    Hi Evangelos
    The QPAC is now ready for beta testing.
    I'll send you the QPAC by separate email.
    There is no documentation yet, but hopefully the user interface makes it fairly easy to work out.
    One point: the QPAC picks a file off the file system, NOT out of a process variable. The file must be accessible from the Workflow server machine, not the user's machine.
    Please let us know if you encounter any problems, or if you need any enhancements.
    Also, please note that in order for this QPAC to work, it has to introduce a "dummy" task into the task history within Form Manager. We're hoping to come up with a more elegant way of solving this at some point, but this will require a lot more code, and I wanted to give you something that works. Hopefully this is just a minor inconvenience.
    Regards,
    Howard

  • Steps for creating a SAP Remote cube.

    Hello Experts,
    Can you anyone list the steps for creating a SAP Remote cube please?
    Any step by step guide will be of really great help.
    Thanks in advance.
    Regards,
    Kumar.

    Creating VirtualProviders Based on Data Transfer Processes Locate the document in its SAP Library structure
    Prerequisites
    If you are using a DataSource as the source for a VirtualProvider, you have to allow direct access to this DataSource.
    Procedure:
           1.      In the Data Warehousing Workbench under Modeling, choose the InfoProvider tree.
           2.      In the context menu, choose Create VirtualProvider.
           3.      As the type, select VirtualProvider based on data transfer process for direct access.
    In terms of compatibility, a VirtualProvider that is based on a data transfer process with direct access can also be connected to an SAP source system using a 3.x InfoSource.
    The Unique Source System Assignment indicator controls whether this source system assignment needs to be unique. If the indicator is set, you can select a maximum of one source system in the assignment dialog. If the indicator is not set, you can select multiple source systems. In this case, the VirtualProvider acts like a MultiProvider.
    If the indicator is not set, characteristic 0LOGSYS is automatically added to the VirtualProvider when it is created.  In the query, this characteristic allows you to select the source system dynamically: In each navigation step, the system only requests data from the assigned source systems whose logical system name fulfills the selection condition for characteristic 0LOGSYS.
           4.      Define the VirtualProvider by transferring the required InfoObjects. Activate the VirtualProvider.
           5.      In the context menu of the VirtualProvider, select Create Transformation. Define the transformation rules and activate them.
           6.      In the context menu of the VirtualProvider, select Create Data Transfer Process. DTP for Direct Access is the default value for the DTP type. Select the source for the VirtualProvider. Activate the data transfer process. See Structure linkCreating Data Transfer Process for Direct Accesss.
           7.      Activate direct access. In the context menu of the VirtualProvider, select Activate Direct Access. In the dialog box that appears, choose one or more data transfer processes and select This graphic is explained in the accompanying text Save Assignments.
    Check this for little extra info:
    /thread/142088 [original link is broken]

  • Post installation Steps for SAP XI

    Hi,
    I am doing post installation steps for SAP_XI, for the step "Generating roles for SAP_XI and SAP_SLD in transaction PFCG, when I enter Role: "SAP_XI*" then its not generating any roles it is giving message "No roles found in the selected area" Please suggest
    Thanks,
    Nishant

    Create user in SAP XI and then assign them role
    Create user using SU01 transaction. Enter the username and click on the first button (create).
    Follow the process below
    1. Address Tab
    Enter the user details
    2. Logon Data Tab
    Enter the initial password. Make sure user type is Dialog (it is by default).
    3. Roles Tab
    SAP_XI_DEVELOPER
    SAP_SLD_DEVELOPER
    SAP_XI_MONITOR
    (if the user is admin give the admin roles)
    Before logging on to the Integration Builder, logon to ABAP stack (SAPGUI frontend on windows or java) at least once. Then logon to Int.Builder components.
    regards
    Dharamveer

  • ABAP access key  & install step for  IDES ECC 5.0 oracle database

    Hallo
    if you have installation guide/steps for IDES ECC 5.0 (Oracle database) then please send me. also if you have ABAP access key for the IDES ECC 5.0 (SQL 2005 database) . My system details as
    SID=ERP
    instance no=00
    host=sapsrv
    database=SQL 2005
    Waiting for faveroable reply

    I really appreciate response for my question.
    I am trying to install a non-IDES version of ECC 5.0 (central, database, and dialog instances).
    Questoin : Do I need install Solution Manager 3.2 on the same server where I am installing ECC 5.0?

  • Steps for Repartitioning Infocube in BI7

    Hi all,
    Plaese give me detailed steps for Repartitioning Infocube which is having Data & not having partitions ( Before ) in BI 7.
    2. Please provide significance of a) Adding Partitions
                                                   b) Merging Partitions
                                                   c) Complete Repartitioning Processing Options in the Repartitioning of Infoproviders Screen.
    Points will  assign.
    Thanks & Regards,
    Ram.

    Hi Ram,
    Repartitioning can be useful if you have already loaded data to your InfoCube, and:
    1.You did not partition the InfoCube when you created it.
    2. You loaded more data into your InfoCube than you had planned when you partitioned it.
    3.You did not choose a long enough period of time for partitioning.
    4.Some partitions contain no data or little data due to data archiving over a period of time.
    <b>Integration</b>
    All database providers support this function except DB2 for Linux, UNIX, Windows and MAXDB. For DB2 for Linux, UNIX and Windows, you can use clustering or reclustering instead. For more information, see Clustering .
    <b>Features
    Merging and Adding Partitions</b>
    When you merge and add partitions, InfoCube partitions are either merged at the bottom end of the partitioning schema (merge), or added at the top (split).
    Ideally, this operation is only executed for the database catalog. This is the case if all the partitions that you want to merge are empty and no data has been loaded outside of the time period you initially defined. The runtime of the action is only a few minutes.
    If there is still data in the partitions you want to merge, or if data has been loaded beyond the time period you initially defined, the system saves the data in a shadow table and then copies it back to the original table. The runtime depends on the amount of data to be copied.
    With InfoCubes for non-cumulatives, all markers are either in the bottom partition or top partition of the E fact table. Whether mass data also has to be copied depends on the editing options. For this reason, the partitions of non-cumulative InfoCubes cannot be merged if all of the markers are in the bottom partition. If all of the markers are in the top partition, adding partitions is not permitted. If this is the case, use the Complete Repartitioning editing option.
    You can merge and add partitions for aggregates as well as for InfoCubes. Alternatively, you can reactivate all of the aggregates after you have changed the InfoCube. Since this function only changes the DB memory parameters of fact tables, you can continue to use the available aggregates without having to modify them.
    SAP recommends that you completely back up the database before you execute this function. This ensures that if an error occurs (for example, during a DB catalog operation), the can restore the system to its previous status.
    <b>Complete Partitioning</b>
    Complete Partitioning fully converts the fact tables of the InfoCube. The system creates shadow tables with the new partitioning schema and copies all of the data from the original tables into the shadow tables. As soon as the data is copied, the system creates indexes and the original table replaces the shadow table. After the system has successfully completed the partitioning request, both fact tables exist in the original state (shadow table), as well as in the modified state with the new partitioning schema (original table). You can manually delete the shadow tables after repartitioning has been successfully completed to free up the memory. Shadow tables have the namespace /BIC/4F<Name of InfoCube> or /BIC/4E<Name of InfoCube>.
    You can only use complete repartitioning for InfoCubes. A heterogeneous state is possible. For example, it is possible to have a partitioned InfoCube with non partitioned aggregates. This does not have an adverse effect on functionality. You can automatically modify all of the active aggregates by reactivating them.
    <b>Monitor</b>
    You can monitor the repartitioning requests using a monitor. The monitor shows you the current status of the processing steps. When you double-click, the relevant logs appear. The following functions are available in the context menu of the request or editing step:
    Delete: You delete the repartitioning request; it no longer appears in the monitor, and you cannot restart. All tables remain in their current state. The InfoCube may be inconsistent.
    Reset Request: You reset the repartitioning request. This deletes all the locks for the InfoCube and all its shadow tables.
    Reset Step: You reset the canceled editing steps so that they are reset to their original state.
    Restart: You restart the repartitioning request in the background. You cannot restart a repartitioning request if it still has status Active (yellow) in the monitor. Check whether the request is still active (transaction SM37) and, if necessary, reset the current editing step before you restart. 
    <b>Background Information About Copying Data</b>
    By default, the system copies a maximum of six processes in parallel. The main process splits dialog processes in the background. These dialog processes each copy small data packages and finish with a COMMIT. If a timeout causes one of these dialog processes to terminate, you can restart the affected copy operations, after you have altered the timeout time. To do this, choose Restart Repartitioning Request.
    <b>Background Information About Error Handling</b>
    Even if you can restart the individual editing steps, you should not reset the repartitioning request or the individual editing steps without first performing an error analysis.
    During repartitioning, the relevant InfoCube and its aggregates are locked against modifying operations (loading data, aggregation, rollup and so on) to avoid inconsistent data. In the initial dialog, you can manually unlock objects. This option is only intended for cases where errors have occurred and should only be used after the logs and datasets have been analyzed.
    <b>Transport</b>
    Since the metadata in the target system is adjusted without the DB tables being converted when you transport InfoCubes, repartitioned InfoCubes may only be transported when the repartitioning has already taken place in the target system. Otherwise inconsistencies that can only be corrected manually occur in the target system.
    <b>Activities</b>
    You can access repartitioning in the Data Warehousing Workbench using Administration, or in the context menu of your InfoCube.
    You can schedule repartitioning in the background by choosing Initialize. You can monitor the repartitioning requests by choosing Monitor.
    Hope this helps
    Regards
    Karthik

  • How to skip approving steps for users who are also approvers?

    We have a business need to be able to skip the approving steps for the users who are also approvers.
    For this following steps were followed :-
    1) Open .task file and go into the Assignment tab. Double click on the performer box within the routing slip, this should open the "Edit Participant Type" editor. Expand the "Advanced" section and place a check next to "specify skip rule", then click the edit icon to the right. Now enter an XPath expression that will test whether the current user is equal to the task creator.
    2) We used - isUserInRole XPath function in the "Identify Service Functions" dropdown - first param to function is the userID, the 2nd is the role name.
    We tried with hardcoded userID as well as by using
    ids:isUserInRole(/task:task/task:systemAttributes/task:updatedBy/task:id,'California')
    where 'California' is the group name (as one of the forum threads told this function works with groups).
    We also tried with swimlane roles(using bpm.getPerformer() function) but it does not work either.
    Please let me know if any one has any solution to this problem.

    session as DirectorySession = DirectorySession.currentEngineSession
    dirHum as Fuego.Fdi.DirHumanParticipant = DirHumanParticipant.fetch(session : session, id : "myUserId")
    result = hasRoleAssigned(dirHum, role : "Approver")Give that a try...
    HTH,
    -Kevin

Maybe you are looking for

  • ImageIO image renders slow in scroll pane

    Hello all, I need some help understanding the behavior of BufferedImage(s) retrieved from ImageIO.read(). The problem I am having is weird .. I load a PNG image via ImageIO.read(), I use it to construct an ImageIcon which is later used in a JLabel/JS

  • Macbook crashing when plugged in

    I have a 2008 black macbook and everytime im using the computer and its plugged in charging the machine seems to crash, the machine seems to run fine when not plugged in? very weird i am using a 60W Magsafe Charger

  • Trouble with the Blurb Book Module in Lightroom

    I have successfully created & finished one book in the Lightroom Book Module using Blurb without any issues. I started a second one but now I'm having problems. I have a saved book started that I'm about 10 pages in on. But now I can't figure out wha

  • How do I permentantly delete a contact from my iphone

    I deleted a contact, however when I go to type in a contact for a message this deleted contact shows up too! How can I delete it? I have tried to reset and still pops up!

  • Connecting to the db is taking too long with Shared Servers connection

    Hi all OS: Solaris 11 SPARC 64 bits DB: 2-node RAC Oracle 11.2.0.3.5 After doing a migration of a 40GBs database from a 9i database to a 11g database, it's takin too long to connect to the db, which is using shared server. In the moment, there aren't