Set choice in choice group automatically - InfoPath Dev
in

InfoPath Dev

Set choice in choice group automatically

Last post 01-30-2007 12:09 PM by Greg Collins. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 01-30-2007 02:46 AM

    Set choice in choice group automatically

    Hello all,

    I have 3 choice sections. The sections cannot be changed because I get this from another system.
    1. choice group:

    <ParameterDefaultValue>
    <choice>
    <FloatValue/>
    <IntegerValue/>
    <StringValue/>
    </choice>
    </ParameterDefaultValue>


    2. choice group:

    <ParameterLowerLimit>
    <choice>
    <FloatValue/>
    <IntegerValue/>
    <StringValue/>
    </choice>
    </ParameterLowerLimit>


    3. choice group:

    <my:ParameterUpperLimit>
    <choice>
    <FloatValue/>
    <IntegerValue/>
    <StringValue/>
    </choice>
    </ParameterUpperLimit>


    There are 3 buttons "String", "Integer" and "Float". The user clicks a button and the special value of all 3 choice groups has to be shown.
    In code I implement following in the "String" button event (the other buttons are similar):

    thisXDocument.View.ExecuteAction("xReplace::replace", "StringValue_4074");
    thisXDocument.View.ExecuteAction("xReplace::replace", "StringValue_4080");
    thisXDocument.View.ExecuteAction("xReplace::replace", "StringValue_4086");


    It comes an error:
    "The specified varXmlToEdit value for the View.ExecuteAction call is not valid."

    How can I set choice in choice group automatically?
    Can anybody help me?
    Thanks.
  • 01-30-2007 12:09 PM In reply to

    Re: Set choice in choice group automatically

    The command syntax is correct. All I can think of is to verify that "StringValue_XXXX" is accurate for each.
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.