Workflow Soluiton

 View Only
  • 1.  Workflow DropDownList Logic

    Posted Jan 12, 2011 01:53 PM

    I have a simple server request form that has a drop down list populated with Server OS types (Windows Server 2003 Std, Windows Server 2003 Ent, Windows Server 2008, Windows Server 2008 R2, etc).

    I have another DDL component below that for architecure (32bit vs 64bit). 

    How can you implement logic so that if the person requesting a server chooses Windows Server 2008 R2 for example the architecture box becomes unavailable (since R2 only comes in 64bit).

    Is there any work required on the database side to support that rule?



  • 2.  RE: Workflow DropDownList Logic
    Best Answer

    Posted Jan 12, 2011 02:17 PM

    You can do this within the workflow designer, you don't need to change the database.

     

    Ensure "post form on change" is set on the operating system field.

    The form will then reload.

    Ensure the defaults and/or list options for the second drop down are populated by a dynamic model.

    You can put the whole lot in a dynamic AJAX panel if you want to avoid the flickering.

    There are a couple of videos detailing this setup on www.workflowswat.com

    Hope this helps a little.

    Phil



  • 3.  RE: Workflow DropDownList Logic

    Posted Jan 12, 2011 03:01 PM

    What should come after the matches rule component in the dynamic model? I'm comparing this_form.server_os field to match either of the two cases where Server 2008 R2 (std or ent) but how would you then populate the Architecture drop down.

    For example: If Windows Server 2008 R2 Standard is selected the form should flash (until i add the ajax panel) and then 64bit should be selected in the Architecture dropdown and should grey out.

     

    Edit: I think I got it, had never worked with a dynamic model before. You have to map the end components to the values you're wanting.