How to expose some objects or varibles to msscript control engine in cvi enviroment

I am writing a configarable application for  industry automation in cvi enviroment .I used a msscript control 1.0 to run users' self-defined scripting codes .In vb developing eviroment ,user can use directly the objects exposed from vb-base appliction which seems so convinient to the users. so I want to make users visit directly variables exposed from my application in cvi the same as in vb .
for example :
users define 3 variables  temp,liquidlevel , outvalue which  represent respectly temporature ,liquidlevel from testing site and the output value to control field device . 
I hope users can use the flowing codes in their controlling policies
if temp <x or tem>y then
   output=z
endif
if liquidlevel <m then
  output=n
endif
I don't know how to meet such requirment , can someone tell me the methods to realize this function?
thanks a lot.

Please see this thread:
http://forums.ni.com/ni/board/message?board.id=180&message.id=25015

Similar Messages

  • How to group some objects  and  duplicate it and then enlarge the same group using javascript ??

    Hi everyone,
    I need to write a javascript which will group some object on running the script and then duplcate the same group.After duplicating it will enlarge the same group upto some extend.The object will be generally inside the textframes.We have to group them and then make a duplcate of the group on the same page.Please tell me the javascript code to do the same.
    Thanks and regards,
    Sanat

    Thanks a lot jongware..now its selecting the objects correctly but i m struck with adding the selected objects  to the group and duplicating the  same group.<br />I tried the follwing code but it didnot work.<br /><br />main();<br /><br />function main(){<br />     if (app.documents.length != 0){<br />          if (app.selection.length > 0){<br />               <br />               var myObjectList = new Array; <br />                        var myObjectList = new Array; <br />for (i=0; i<app.selection.length; i++) <br />     myObjectList.push (app.selection[i]); <br /><br />alert ("length of myObjectList is "+myObjectList.length);<br /><br />var myGroup =app.documents.groups.add(myObjectList); <br /><br />var myGroup1=myGroup.duplicate(myObjectList1,myObjectList1);<br /><br />                    }<br />               }<br />          }<br />     <br />I know i m asking silly questions but i m a begginer to this scripting and want to learn more.Please guide me with the proper code to do so.<br /><br />Thanks,<br />Sanat

  • How to get sum of quantity column in table control

    Hi, expert ,
    Someone can guide me how to get som of qty column in table control ?
    I created a screen with a table control  and has a  qty quantity field .
    I want to show total of qty  in a  field .
    my code like this ...
    PROCESS AFTER INPUT.
      LOOP AT I_tab.
        CHAIN.
           FIELD I_tab-COUNTQTY MODULE  caculate_total_qty .
        endchain.
        MODULE UPDATE_TOTAL_QTY  .
      ENDLOOP.
    but, when I Back to the previous screen
    It's caculate again so I always get wrong Total quantity .
    anyone can help me ...

    Hi , Dhina
    I have another question .
    I use internal table data in table control to update  database table .
    The data in the db will be change ,
    but each record I want to delete in table control , it's still exist in database .
    my code is
    WHEN 'SAVE'
         MODIFY YDSGBT53 FROM TABLE I_YDSGBT53 .
         COMMIT WORK .
      END CASE
    How  to fix my code and let it can change and delete data in database  ?
    or
    when I delete record  in table control I must to delete data in the database too .
    Edited by: TitusFang on Jun 16, 2011 3:21 AM

  • How to make the table scalable inside a tap control?

    Hi,
    Does anyone know how to make the table scalable inside a tap control in LabWindow CVI? I see that there is option for a panel to scale contents on resize, but not available for a tab control. Any ideas?
    Thanks a lot!
    Weiming
    Solved!
    Go to Solution.

    Hi SGIE,
    you have posted a LV-related question to the LabWindows/CVI forum: you should post it in the LabVIEW forum instead.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • How to initiate some action when user clicks a field in CRViewer?

    <p><span style="font-family: Courier"><font size="1">ReportObjects doesn't expose click event despite the fact that a field can get focus frame, you can even tab from field to field. </font></span><span style="font-family: Courier"><font size="1">Drill() event works only on group names.</font></span><span style="font-family: Courier"><font size="1">So, how to initiate some action (based on a clicked field value) when user clicks a field in CRViewer?</font></span><span style="font-family: Courier"><font size="1">After doing some googling, have found that something similar exists but it's FoxPro API</font></span></p><p><strong><span style="font-size: 12pt; font-family: Courier"><font size="1">From some PDF: </font></span></strong><strong><span style="font-size: 12pt; font-family: Courier"><font size="1"> </font></span></strong></p><p><strong><span style="font-size: 12pt; font-family: Courier"><font size="1">> Report objects events</font></span></strong> </p><p style="margin: 0cm 0cm 0pt; line-height: normal" class="MsoNormal"><span style="font-size: 10pt; font-family: Courier"><font size="1"><span style="font-size: 12pt; font-family: Courier"><font size="1"><strong>> </strong></font></span>Report object events occur when you click or double-click a field, </font></span></p><span style="font-size: 10pt; font-family: Courier"><font size="1"><span style="font-size: 12pt; font-family: Courier"><font size="1"><strong>> </strong></font></span>heading, or label in a report.</font></span> <p style="margin: 0cm 0cm 0pt; line-height: normal" class="MsoNormal"><span style="font-size: 10pt; font-family: Courier"><font size="1"><span style="font-size: 12pt; font-family: Courier"><font size="1"><strong>> </strong></font></span>Doing this creates the EventInfo object. This object contains </font></span></p><span style="font-size: 10pt; font-family: Courier"><font size="1"><span style="font-size: 12pt; font-family: Courier"><font size="1"><strong>> </strong></font></span>information about the event and</font></span> <p style="margin: 0cm 0cm 0pt; line-height: normal" class="MsoNormal"><font size="1"><span style="font-size: 10pt; font-family: Courier"><span style="font-size: 12pt; font-family: Courier"><font size="1"><strong>> </strong></font></span>passes as a parameter to the event method. </span><strong><span style="font-size: 10pt; font-family: Courier">Table 3 </span></strong><span style="font-size: 10pt; font-family: Courier">lists the</span></font></p><p style="margin: 0cm 0cm 0pt; line-height: normal" class="MsoNormal"><font size="1"><span style="font-size: 10pt; font-family: Courier"><strong><span style="font-size: 12pt; font-family: Courier"><font size="1">> </font></span></strong>EventInfo object properties.......</span></font></p>

    The article you found refers to the ActiveX viewer which is used with the COM-based tool called Report Designer Component. Since you have posted to the .NET forum, I'm assuming you're not using the RDC and therefore this article will not apply.
    Recently, Click events were added to the Windows Form Viewer to get similar functionality as the ActiveX viewer. Take a look at the following link for more information....
    [http://diamond.businessobjects.com/node/2109 | /node/2109]
    However, if you are using the CR Web Forms Viewer in an ASP.NET app, then this functionality is not available.

  • How to call request object of IPortalComponent in KM Scheduler application

    Hi
    We are reading RFC Table data using JCO Connection Pool(JCOClientPoolEntry. Please find the below teo line code.If we put this code in KM Scheduler application then its throwing error for the request objecct of IPortalComponenetRequest.
    IJCOClientPoolEntry jcoPoolEntry = null;
    jcoPoolEntry = clientService.getJCOClientPoolEntry(sysId, request);
    Can you please let me know how to use request object of IPortalComponent in KM Scheduler application?
    Thanks,
    Susmita

    Hello GopalY,
    In my experience its not possible to call OLE object in Webui. Maybe customer 3 party application will be supply some web service to handle credit card payments. I think this is the simple way to access 3party application.
    Regards,
    Zafer,

  • How to share a object library

    Dear Adobe Community,
    I am using the Adobe (JetForm) Output Designer Version 5.4.0. 130
    As we are working in a team on several forms (IFDs), which include
    some objects from a object library, we would like to share the same library
    within the team. I could not find any option to export / import objects from one
    library to another one.
    Is there a possibility to share the same library with multiple users, for example on a
    network-share-drive? If yes, how can we implement this?
    Thanks in advance for your input.
    Best regards
    Jan

    hi Michel,
    Here is all the info I have on sharing.
    SHARING IPHOTO LIBRARIES
    Sharing libraries between users on the same local network
    You can also share a library on the same machine between users the same way.
    Sharing libraries between users on the same machine...
    -both users must have sharing enabled in their iPhoto Preferences
    -both users must be logged in and have iPhoto running
    -Remember that you can only view the other library. You can't edit the photos or play the saved slideshows or view the made books or burn them to CD or DVD. The books and slideshows will show up as an album. You can play that album as an "on the fly" slideshow. You can drag images from the sharing library to your library in the source column to import them to your library. You can then edit, add to albums, books, slideshow, etc.
    Sharing links from Apple....
    Sharing your photos between computers
    About shared photos
    Turning off photo sharing
    Looking for shared photos
    SHARING ONE IPHOTO LIBRARY BETWEEN USERS ON SAME MACHINE
    You can try one of these three methods:
    1- Use iPhoto Library Manager-the paid version
    The documentation page will give instructions on how it is done.
    2- Sharing one iPhoto library between several users on one machine
    3- Share an iPhoto Library in tiger Using ACL's
    4- I have also read about ShareAlike
    There is no other info on the site about how it works.
    I strongly urge anyone wanting to try any of the methods for sharing one iPhoto Library folder among more than one user to backup all iPhoto Library folders before attemptin anything.
    Lori

  • How to cast an Object into a specific type (Integer/String) at runtime

    Problem:
    How to cast an Object into a specific type (Integer/String) at runtime, where type is not known at compile time.
    Example:
    public class TestCode {
         public static Object func1()
    Integer i = new Integer(10); //or String str = new String("abc");
    Object temp= i; //or Object temp= str;
    return temp;
         public static void func2(Integer param1)
              //Performing some stuff
         public static void main(String args[])
         Object obj = func1();
    //cast obj into Integer at run time
         func2(Integer);
    Description:
    In example, func1() will be called first which will return an object. Returned object refer to an Integer object or an String object. Now at run time, I want to cast this object to the class its referring to (Integer or String).
    For e.g., if returned object is referring to Integer then cast that object into Integer and call func2() by passing Integer object.

    GDS123 wrote:
    Problem:
    How to cast an Object into a specific type (Integer/String) at runtime, where type is not known at compile time.
    There is only one way to have an object of an unknown type at compile time. That is to create the object's class at runtime using a classloader. Typically a URLClassloader.
    Look into
    Class.ForName(String)

  • How to expose sort attributes in a web service created on a AM 11g TP4

    I'm using Jdeveloper 11g TP4 to create a web service on the application module.
    When I run the web service, it is working fine. Can someone tell me how to expose the sort attributes for the user to choose?
    How do I expose the sort Order for the user to select?
    These are the steps I followed:
    1) Created a new application.
    2) Created a view object in the Model project.
    Created one bind variable.
    Created new view Criteria and used the bind variable.
    3) Created a new jspx page.
    From the Data control dragged and dropped the Named Criteria on to the page and used "ADF Query Panel with Table..."
    4) Ran the Jspx page. It works fine.
    Double Click Application Module.
    Click on tab Service Interface.
    Hit New, this will open the Wizard to Create a new Service Interface.
    Followed instructions and selected all the applicable methods to expose as web service.
    At the end of the process, wsdl, xsd, java files are created.
    I'm able to run this web service.
    The field to query the data is exposed in the Web Service.
    Is there a way to expose the sorting attributes to be selected by the user? i.e. I want to expose the fields to the user.
    Thanks,
    Jagadish.

    Why bother with TP 4? JDev 11g is already production.
    --olaf                                                                                                                                                                                                   

  • How to create a object for IPageItemControlData?

    how to create a object for IPageItemControlData?

    From the header comment you'll see that IPageItemControlData is an Interface of PageItemWidget. That must've been an InDesign 1.0 or 1.5 feature predating kPageItemBoss, because except for the same comment even in InDesign 2.0 SDK the only further reference is a copy in the comment of its sibbling IFrameControlData which was removed with InDesign CS.
    The IID and kPageItemControlDataImpl are probably only around because deep under the hood there must be some kind of conversion provider waiting to do its job on a very old document.
    I guess the closest in today's functionality will be IHierarchy.
    Dirk

  • How to create an object for this Question...

    i want to create an object to Factorial.java, but the class is in String object... how can i do that
    please help me with code how to create an object
    String str = Factorial.java;
    i tried to do like this
    str s1 = new str();
    this way is not working...
    thank u

    yes sir am trying to instantiate and retrieve the metadata, am a student am asked to do Program Analyzer, while fullfilling the application requirements i came across this situation, like i have to find total number of public methods in any source file that is entered as input.
    Am taking the input in String variable, i can have the details of the source class only of i instantiate and create an Object to that....
    Please suggest me some way to do that... JAVA is so interesting am working on the project since 2 weeks am done with all other classes but struck here finding the total number of methods...
    Thank you

  • How to delete an object from a request?

    friends,
          There is an exit developed to include a subscreen in a standard screen. The layout, flow logic and some include files are saved in different requests..i saved everything in one request and tried to release it...but it's not getting released.."Repair so, how to delete the object(s) from all the old requests where it is saved? when i attempt to delete the request, it is not allowing saying that changes can't be made to a released request. any other options available? how to go about with this? thanks all.

    HI sathish,
    1. If the old request is release,
       then we cannot do anything.
      (There is no point in changing that old request)
      (bcos its already released)
    2. what can be done is that
       u save once again the objects,
       and it will once again ask for new request.
    3. this time save it in new request
    regards,
    amit m.

  • How to detect an object on a JPanel??

    Hi everyone,
    I have a question that might have been answered before but unfortunately I did not find it in Java forums.
    Actually I have a panel that my contains some objects with different shapes. I am looking for a way to detect these objects when the mouse is over them. (For example to get the class or the properties of these objects).
    Does any body have any idea how can I do this? Even if it is a link to previous answers I would be glad to have it.
    Sorry to bother and have a nice day.
    Pishi

    how are you adding these objects or whatever to the UI? are you painting them in yourself?Its a bit complicated.. I create some shapes in a drawing panel and I save them as a sort of hematoma (bruise) object that has this shape.
    In another panel I will upload this object and the user should detect this object by moving his mouse on the panel. (This Panel is not shown to the user and he has to detect it by the variation of the cursor head).
    someone has proposed a solution but do u have other ones? that would be welcome :)
    tnx

  • How to POST an object in an Applet to a JSP server?

    I'm trying to realize such a functionality: when the 'Submit' button of a form is clicked, the form fields as well as a 'byte[]' object in an Applet in the page are POSTed to the JSP server. How to implement this?
    PS I hope I'm posting in the right forum.

    You could do something like this. Probably you want to make it more generic to be able to add an arbitrary number of fields, but I hope you get an idea.
    private void postData() {
           URL url = new URL(/* your url here */);
           URLConnection connection = url.openConnection();
           String boundary = "----------" + Long.toHexString(System.currentTimeMillis());
           connection.setRequestProperty("method", "POST");
           connection.setRequestProperty("Content-Type", "multipart/form-data; boundary=" + boundary);
           String name1;        // the name of the first field
           String value1;       // the value of the first field
           String name2;        // the name of the second field
           byte[] value2array; // the value of the second field or some object converted to a byte array
           String output =
                   "--" + boundary + "\r\n"
                   + "Content-Disposition: form-data; name=\"" + name1 + "\"\r\n"
                   + "Content-Type: text/plain\r\n"
                   + "Content-Transfer-Encoding: quoted-printable\r\n\r\n"
                   + value1 + "\r\n"
                   + "--" + boundary + "\r\n"
                   + "Content-Disposition: form-data; name=\""+ name2 +"\"\r\n"
                   + "Content-Type: image/png\r\n"
                   + "Content-Transfer-Encoding: base64\r\n\r\n"
                   + new String(value2array) + "\r\n"
                   + "--" + boundary + "--\r\n";
           connection.setDoOutput(true);
           connection.getOutputStream().write(output.getBytes());
           connection.connect();
    }

  • How to create an object of inner class

    hi i don't know how to create an object of an inner class..
    i got something like
    class Abc{
    private class Abcd {
    like this and i want to create an object of Abcd so that i can use some of method
    there..
    i think i should create the outter class object first right? but not sure
    the syntax.. i tried something like
    Abc.Abcd justTry = new Abc.Abcd()
    something like this..but not work..
    help me plz. ...

    If the nested class (that's not technically an inner
    class you have there) is not static, then you can't
    refer to it with OuterClassName.InnerClassName any
    more than you can refer to any other member--method
    or variable--with ClassName.staticMember.
    You need an instance.
    It's been a while since I've created an instance of a
    non-static nested class from outside that clsas, but
    I think it's something like this: Outer outer = new Outer();
    outer.Inner inner = new outer.Inner();
    Actually, I think it is this:
      Outer outer = new Outer();
      outer.Inner inner = outer.new Inner();Can't test it now though, gotta go to Taco John's for TACO TUESDAY!!!!
    Gotta love them crunchy shell bean tacos!!!

Maybe you are looking for