×
Menu
Index

Update a Userinterface

Update userinterface

functionID = 15
 
To update the Userinterface if one of the Questions with UpdateUserinterface = True has been changed, the following XML should be send to the server:
 
<softrulestcpframe>
    <softrules>
        <header>
            <parameters>
                <parameter>
                    <name>QuestionGuid</name>
                    <value>3da53631-1f30-30-b3e2</value>
                </parameter>
            </parameters>
            <functionid>15</functionid>
        </header>
        <xmldocument>
            <![CDATA[<SoftRulesUserInterface>
                <Questions>
                 ………..
                </Questions>
                <SoftRulesXML></SoftRulesXML>
                <ConfigID>6021</ConfigID>
                <UserInterfaceID>1</UserInterfaceID>
            </SoftRulesUserInterface>]]>
        </xmldocument>
    </softrules>
</softrulestcpframe>
 
The <xmldocument/> tag  holds the Userinterface XML previously fetched from the SoftRules® Server. This may be the whole XML document, or if may hold only the following required fields:
 
Questions:
Groups;
Besides that the structure of the Groups and Questions should remain intact.
 
The complete XML is in a CDATA section. (<![CDATA[]])
 
Send this to the SoftRules® Server using the following command:
 
string userinterfaceXml = SendXML(<xml>, TCPPort);
 
The response XML will be the same Userinterface XML  (equal QUESTIONs and GROUPs), but with modified values.