public class MyClass
{
publicstatic BusinessObject1 bo1;
publicstatic Form1 form1;
[Promote(PromotionTargets.ExpressionBuilder)]
[Category("UserCategory")]
public static string sGetNextInSequence()
{
bo1.Refresh();
string sValue=bo1.NextSequenceFormatted.ToString();
// trying to set the Text1 value
form1.Fields.Text1.DataValue=sValue;
return sValue;
}
}
Its me again.
Via a Button click, I'm trying to return a string from a Business Object (Query) and set the text of a textField with the result.
My server script is above.
I'm using a Visual Script Event Handler ( Code Activity to call my server script )
string sReturn = MyClass.sGetNextInSequence();
Any suggestions ? Am I on the right track - or completrly missing the point ?