Need help with simple script - casting memo data to string.
I'm thinking of converting jscript.net scripts over to C# in metastorm...
In 7.6 days I would do this:
var myStr : String = ework.CustomVariable("myVar").ToString();
Now in 9.2, I'm having issues with the whole casting bit since my variable is a Memo type...
Comments
-
No need to cast, you just put something like:
string myString = .myVariable;
See some of our examples for lots of C# code.
0 -
Ah - I didn't declare a process object or form object as a parameter in the function.
I wish those 10 errors would've pointed me in a better direction.
Thanks for the assist.
0 -
It seems that you can write a function so that it takes a process object (to gain access to other business objects). However when promoting the function to something like expression builder - passing the process object is not allowed - ultimately making the function useless.
In v9.x there are two or three seperate business objects you would want to declare and then pass in your scripts (local declarations, process declarations and process context).
This is different then v7.6 in that you would essentially pass the ework object which allowed access to the ework variables as well as your custom variables.
If I am wrong about this please correct me.
0 -
RTFM: Pass in the 'Current' object, no quotes. You can do this with forms with the same effect.
ProcessContext is available anywhere. Easiest is just to create a new one. Again, pleanty of this in our examples.
0
Categories
- All Categories
- 123 Developer Announcements
- 54 Articles
- 152 General Questions
- 148 Thrust Services
- 57 Developer Hackathon
- 37 Thrust Studio
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 918 Core Messaging
- 84 Digital Asset Management
- 9.4K Documentum
- 32 eDOCS
- 190 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 10 XM Fax
- Follow Categories