on 05-15-2008 2:14 PM
Hi,
My Form has different color then the SBO form.
What statement do I need in my XML form to follow the users selection of color?
Thank you,
Rune
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ok Rune,
it's like in the email - get the information from the OUDG table (field color)
and extend your LoadFromXML function.
as you see i have a Replace in there - please extend the function.
the variable newvalue should contain the new color.
private static void LoadFromXML(string FileName)
{
System.Xml.XmlDocument oXmlDoc = null;
try
{
oXmlDoc = new System.Xml.XmlDocument();
// load the content of the XML File
string sPath = null;
sPath = System.IO.Directory.GetParent(Application.ExecutablePath).ToString();
oXmlDoc.Load(sPath + "\\" + FileName);
// load the form to the SBO application in one batch
string sXML = oXmlDoc.InnerXml.ToString();
sXML = sXML.Replace("color=\"0\"", "color=\"" + newvalue + "\"");
globals.SBO_Application.LoadBatchActions(ref sXML);
}
catch (Exception er)
{
}
finally
{
oXmlDoc = null;
GC.Collect();
}
}
much luck - i believe in you
David
User | Count |
---|---|
95 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.