Update InitForm value.. - InfoPath Dev
in

InfoPath Dev

Update InitForm value..

Last post 11-10-2008 11:23 PM by erickwidya. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 11-10-2008 08:18 PM

    Update InitForm value..

    workflowProperties.Item["myCategory"] = _AfterProperties1.ExtendedProperties["myCategory"].ToString();
    workflowProperties.Item["mySeverity"] = _AfterProperties1.ExtendedProperties["mySeverity"].ToString();
    workflowProperties.Item["mySolution"] = _AfterProperties1.ExtendedProperties["mySolution"].ToString();
    workflowProperties.Item["myActionBy"] = _AfterProperties1.ExtendedProperties["myActionBy"].ToString();
    workflowProperties.Item["myStatus"] = myStatus;
    workflowProperties.Item.Update();

     

    i'm using that code but initform value is not changing..is that the correct syntax?

     

    thx,

    erick

  • 11-10-2008 10:16 PM In reply to

    • Shiva
    • Top 25 Contributor
    • Joined on 04-15-2005
    • India
    • Posts 694

    Re: Update InitForm value..

    Hello,

    Can you check once what is the return type for ‘workflowProperties.Item["myCategory"]'? If return type is node then you have change your code as below,

    workflowProperties.Item["myCategory"].value = _AfterProperties1.ExtendedProperties["myCategory"].ToString();

    or

    workflowProperties.Item["myCategory"].text = _AfterProperties1.ExtendedProperties["myCategory"].ToString();

  • 11-10-2008 10:30 PM In reply to

    thx Shiva

     i think it's not a node..kindly see the attchment

     

    thx

     


  • 11-10-2008 11:12 PM In reply to

    Re: Update InitForm value..

     workflowProperties.Item["myCategory"] = _AfterProperties1.ExtendedProperties["myCategory"].ToString();
    workflowProperties.Item["mySeverity"] = _AfterProperties1.ExtendedProperties["mySeverity"].ToString();
    workflowProperties.Item["mySolution"] = _AfterProperties1.ExtendedProperties["mySolution"].ToString();
    workflowProperties.Item["myActionBy"] = _AfterProperties1.ExtendedProperties["myActionBy"].ToString();
    workflowProperties.Item["myStatus"] = myStatus;
    workflowProperties.Item.Update();

     

    after ask my uncle(goole :D)..he said that this can work..but u  need to check "allow user to edit data ..." when publishing it to Sharepoint List

  • 11-10-2008 11:13 PM In reply to

    Re: Update InitForm value..

    Hi,

    Check the return type for the left hand side expression. You have sent the picture for right hand side expression.

     
    Swathip
    www.ggktech.com
  • 11-10-2008 11:23 PM In reply to

    Re: Update InitForm value..

    thx swathip

     

    i'm afraid that's the left side expression..

     

Page 1 of 1 (6 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.