Skip to main content

Can I make the form designer loaded with the values

Comments

10 comments

  • John Nerge
    Check out the help topic for Display form. You can insert or select default text and options using runtime modifications.

     

    Examples:

     

    form.Title

     

    form.Find(Of AutoCompleteBoxFormItem)("AutoCompleteBox1").DefaultText

     

     

     
    0
  • Srikanth Pilli
    Thanks John.

     

     
    0
  • Srikanth Pilli
    Hi John,

     

    If I want to assign a deafult text to Date picker object, how can I do that :

     

    Form.Find(Of DatePickerFormItem)("DatePicker1")

     

     

    I am unable to find the right property which can do that similar to "defaulttext" property of Textbox.

     

    Thanks

     

    Srikanth
    0
  • John Nerge
    Try using form.Find(Of DatePickerFormItem)("DatePicker1").InitialDate
    0
  • Srikanth Pilli

    Thanks John, for looking into it and providing the similar property as "DefaulText" of TextBox.

     

    But, in my case - I want to pre-populate the date value in the Form when reopened, with the previous date value that the user had selected initially in the Form for the DatePicker.

     

    With "InitialDate" property, I was unable to accomplish it.

     

    Is there any property that I can look for.

     

    Basically, I am storing the date value that the user picks up initially using the "GetExternalValue" and then using  the "SetExternalValue" activity for retrieving the value of Date - and then using "form.Find(Of DatePickerFormItem)("DatePicker1")......." for pre-populating the date picker box.

     

    Please provide your inputs on it.

     

    Thanks

     

    Srikanth
    0
  • John Nerge
    The method you describe is what I would try to do too. Are you saying that you're storing the date the user picks as an external value and then trying to use that as the initial date the next time they run the workflow? If so, what about it isn't working?
    0
  • Srikanth Pilli
    Hi John,

     

    What  you said is absoluetly right, I am allowing user to pick up an external value for the first time - the next time when they run the workflow, the date value user had selected previously should be the initial value.

     

    I did what you said, but it didn't work.

     

    Any ideas?

     

    Thanks

     

    Srikanth
    0
  • John Nerge
    Here's a sample workflow that I think is doing what you're trying to do.

     

    https://drive.google.com/open?id=0B_hHHiqcTKMfWWhnWUkzRDF5QTg

     

    The basic structure:

     

    1. Look for an external value, which by default is set to nothing.

     

    2. Use a runtime modification to assign the inital date value to the external value.

     

    3. Store the date you used in the external value so it will be the default the next time you run the workflow.

     

    I added it to my test site, and it does load the date I used the last time I ran the workflow.
    0
  • Srikanth Pilli
    Hi John,

     

    Thanks for taking time and creating a new workflow for this task.

     

    I really appreciate for doing this and I was able to get my thing done perfectly.

     

    Once again Thanks for your time.

     

    Thanks

     

    Srikanth
    0
  • Permanently deleted user
    Hi John and Srikanth

     

    I want to take this workflow a step farther. I want to call a python script to operate on the date and then return the date, with possible modifications.

     

    I understand the section about setting the date picker default value from the external value but I am not clear if I can run the python script and return the out put to the external value.

     

    Any thoughts would be valued.

     

    Thanks.

     

    Doug Osborne

     

     
    0

Please sign in to leave a comment.