Programmatically change fields in application

Hello,
I have to make testsoftware but I need to controll several application manually to test it.
How can I change a field of an application that is running.
This application is not labview.
eg. notepad is running and I want to enter a text in notepad only by my labview application.
gr,

Do you really need to use Notepad or can you simply modify the file directly in LabVIEW? I imagine that you are trying to change a configuration file for a device and therefore you should be able to directly modify the file through LabVIEW using the file and string primitives.
Mark Yedinak
"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot

Similar Messages

  • Programmatic changes to textbox values won't stick...

    Using BC4J I have created textboxes that are bound to the Oracle backend. When data is entered or edited manually the app sees the change and activates the save and rollback arrow icons.
    Code behind my buttons can change the data in the bound textboxes but the changes don't cause the save and rollback icons to activate. If any controls on the page are then manually edited the programmatic changes disappear. I know this is because the mSomeAttribute.setText("somevalue") isn't connecting to the bound data sets (rowset ?) but I have been unable to find where/how to access such bindings.
    I can see the in the *RowImpl.java methods the get<someattribute>() and set<SomeAttribute>() functions, but I am not able to access these 'accessors' in in the Form java script, only the constants that reflect the field nnumber for the attributes.
    So, how do I connect programmatically to the attributes in a way that the modified data is seen by the bindings?

    You want to change the value in the view-row, not in the text box.
    Certainly one way to get access to this (all from memory, so the method names might be slightly out) is to get the application module from the panelBinding and then find the view from the application module and then get the current row from the view. Er, i.e.
    Row row = panelBinding.getApplicationModule().findViewObject("the-name-of-the-view-to-which-you-bound-the-control").getCurrentRow();
    Then you can use the set / get methods you spoke about. (Strictly speaking, from the client-tier you should generally be using the Row interface rather than the RowImpl class.)
    However, I wonder whether a more encapsulated way of getting access to the view-row is to start with the control and get the row via some ControlBinding or other. Only I'd have to dig around myself to work out how to do that so I'll leave it to someone else....
    HTH
    Mike.

  • Programmatically changing a form

    I'm creating an application that has multiple forms. Most of these forms are identical except the title's of some of the boilerplates. How can I programmatically change the text of a text boilerplate? If that isn't possible, how could I go about accomplishing what I need. I tried display fields with no bevel and assigning the values but when I clear_form it clears those also. I could always write the code to save those labels just prior to a clear_form and immediately set them again, but I'm looking for an easier (less time consuming) solution.
    Thanks

    Do not use the boilerplate text for the labels, instead you can use the display Items, if the prompts are constantly changing or multi language application, The usage of Display Items is feasible. You can create all the prompts (display items) in one block and they will be accessed when you navigate to that block and you can change the prompts as you needed programatically.
    Hope this helps.
    Thanks.
    Srinivas Konda.

  • BADI for changing Appraisal document application name for Web dynpro ABAP

    Hi,
    For Appraisal document customizing through PHAP_CATALOG_PA, We have BADI HRHAP00_BSP_TMPL  to change the BSP application name which can be used in Web layout for output display. Using this we can change application name from HAP_DOCUMENT to custom BSP application name
    Similarly, what is the BADI for changing Web dynpro ABAP applictaion name? Currently its triggering HAP_MAIN_DOCUMENT.
    how do we change application name to some custom web dynpro application name
    Regards,
    Kothand

    Hi Karim,
    I don't know, if there is any chance to get the Webdynpro application name. At least in the ABAP System fields is no information about the webdynpro application name.
    One remark: I have allways problems with BAPIS / BADIS that behave different depending on the caller. Could it be a good idea to pass some information through the interface / parameters?
    Best regards
    Renald

  • VA01 ATP incorrecct results when delivery date is programmatically changed

    Hi Guru's,
    When creating or modifying a sales order (VA01 & VA02), we need to programmatically assign the delivery date a) for certain customers or b) when the delivery priority is changed from downs to regular order and visa-versa. For examples: 1) user enters a delivery date 02/01/2012, the program (userexit_check_vbep) will automatically replace it with a calculated
    date (i.e.. 2/20/2012). 2) if user changes the delivery priority from regular order to a downs order, the program will automatically replace delivery date to current date.
    But are getting incorrect ATP results when requested delivery date (based on what user enters in VBAP-LPRIO "delivery priority") is programmatically changed and then user manually enters the date and run ATP (see steps 8 & 9 below).  
    VA01 execution steps:
    1) Used VA01 and entered a material of quantity 1, requested date 2/01/2012, delivery priority = regular. Date was overwritten automatically with program calculated date 2/20/2012 as expected.
    2) ATP automatically ran successfully for the initial entry.
    3) I then changed the delivery priority from regular order to downs order & requested delivery date was automatically changed to current date 02/01/2012 as expected.
    4) ran ATP manually and all is well.
    5) I then changed the delivery priority back to a regular order and date was automatically changed back to 02/20/2012 as expected.
    6) I ran ATP manually and again all is well.
    7) I then manually changed the delivery date 02/25/2012.
    Incorrect / bad results:
    8) ATP then passed back 2 sub-items lines with the quantity of 1 each. The quantity on the main line item is doubled to 2.
    9) I then tried to delete the main line item manually to start all over, but the transaction just hangs because it tries to go to ATP, but cannot resolve what to delete.
    Do you have any suggestions to help resolve this?   
    The following SAP user-exits were modified:
    a) MV45AFZB
      1) userexit_check_vbap
      - for certain customers (a custom "override days" field stored in VBAP is populated), delivery date is automatically calculated using this field (i.e.  current date + override days).   If user entered date < calculated date,   calculated date is used (xvbep-edatu).
      - If user changes delivery priority, xvbep-edatu will be set automatically to either the calculated date (regular order) or current date (downs order).
      2) userexit_check_vbep : if user enters a delivery date (vbep-edatu), it is checked against calculated delivery date & overwritten, if it is < calculated date.
    b) MV45AFZZ - userexit_move_field_to_vbap :
      - override days is determined & delivery date is automatically calculated. If user entered date < calculated date, calculated date is used (xvbep-edatu).
      - If user changes delivery priority, xvbep-edatu will be set automatically to either the calculated date (reg.order) or current date (downs order)
    Reason for updating xvbep: if only vbap-lprio or vbap-override (custom field) fields are changed, the VBEP user exit routines (userexit_move_field_to vbep or userexit_check_vbep)  do not run.  Change to xvbep does trigger userexit_check_vbep.
    Please advise.
    Joe

    This is not an SD question and should be moved to ABAP forum. It seems to me that the issue is not with incorrect ATP but with the subitems / main item updated incorrectly. This needs to be resolved by a developer who wrote the user exit. Most likely either a user exit is triggered when not expected or a wrong line updated, etc. Debugger should be helpful.
    Also instead of setting delivery priority, why can't the users just change the delivery date to current date? This seems just as easy to me...

  • How to programmatically change the cell color of an ADF table ?

    Hi all,
    I have an ADF table with some fields on it. Depending on the value of a field named, say, "F1", I would like to change its background color.
    So far I can change the field color with this EL expression inside the InlineStyle table column property:
    font-size:medium; background-color:#{viewScope.myBean.setColor};
    where setColor is a bean function, in where I access the field "F1" via binding, parse its value, and return the right value - so far, so good.
    The bad thing is, the InlineStyle affects that field in all the rows of the table, while I would like to change only the field in the rows, which have that specific value in it.
    So for example having the rows:
    F1
    abc#1 ----> currently selected row
    cde#2
    efg#3
    I want to change the background color to all the F1 fields which have a "1" after the '#' and let the other "F1" row cells background color stay unchanged.
    But as you can imagine, the InlineStyle affect the "F1" background color in all the rows (assuming that the first row of the table is selected).
    So the question: how to access a single cell of a row in an ADF table, and programmatically change its background color ?
    So far I can iterate through the ADF table with:
    BindingContext bindingctx = BindingContext.getCurrent();
    BindingContainer bindings = bindingctx.getCurrentBindingsEntry();
    DCBindingContainer bindingsImpl = (DCBindingContainer) bindings;
    DCIteratorBinding dciter = bindingsImpl.findIteratorBinding("aTableIterator");//access the iterator by its ID value in the PageDef file
    RowSetIterator rsi = dciter.getRowSetIterator();
    System.out.println("rsi getrowcount = " rsi.getRowCount());+
    Row row = null;
    +if (rsi.getRowCount() > 0) {+
    row = rsi.getCurrentRow();
    System.out.println("row attr = " Arrays.toString(row.getAttributeNames()));+
    System.out.println("class : " row.getAttribute("F1").getClass().toString());+
    +}+
    +while (rsi.hasNext()) {+
    row = rsi.next();
    System.out.println("row attr = " Arrays.toString(row.getAttributeNames()));+
    +}+
    Regards,
    Sergio.

    Hi,
    I mean a specific cell within a row.
    Here are two pictures that show an ADF table with two rows and some fields on it:
    https://skydrive.live.com/?cid=7D3084D8BF755808&id=7D3084D8BF755808!107&sc=documents#cid=7D3084D8BF755808&id=7D3084D8BF755808!107&sc=documents
    bild_A is what I have, bild_B is what I would like. Note that:
    in bild_A the first row contain a yellow background color for the field F4 and an orange background color for the field F5. This is correct, because F4 has an "1" at the end of its string value, and F5 has a "3" at the end. So far so good.
    But the second row (again, bild_A) has also the fields F4 with yellow background color, and the field F5 with orange background color, even if the value in both fields is 0.
    What is should be, is shown in bild_B.
    The problem is that the solution provided affects all the cells of the column, while I need to change the background color of a single cell, and leave the other unchanged (see bild_B).
    I hope that clarify a bit :)
    Sergio.

  • Programmatically Change DataBindings.cpx

    Hi
    I am using JDeveloper 11.1.1.3.
    I have been trying to programmatically change data source connections in one of our applications. I first tried doing it in the application module. I could successfully create a new root AM, and query the new database, but was not sure of how I could refresh the VO to show the data from the changed database.
    My second attempt was to create 2 separate AM's. I then added the VO to a JSF page and in the bindings created a pageFlow scope parameter, which I programmatically populated from a drop down list. This was successful. However that requires the development team to duplicate the AM's for each database exactly.
    So my next attempt would be to have only one AM and try and change the configuration in the DataBindings file. The reason I would like to attempt this, is when I click on a DataControl in the DataControl Usage section of the DataBindings file, I see that in the Property Inspector for the DataControl, there is a Configurations property drop down list that contains all the available configurations for the AM. I would like to know if this can be accessed from code at runtime.
    Any advice on how to achieve this or if it is possible would be welcomed.
    Regards.
    Leon.

    hi leond,
    I have done the same thing to change the application module configuration at runtime but its not working in my application.
    actually I have one selectonechoicelist in Jspx page here I'm changing the configuration name but its not getting reflect either in table or console.
    <af:selectOneChoice label="connection" id="soc1" autoSubmit="true"
                                   valueChangeListener="#{schemachange.changecon}"
                                       partialTriggers="t1">
                    <af:selectItem label="hr" value="HRSharedAMShared" id="si2"/>
                    <af:selectItem label="scott" value="ScottSharedAMShared"
                                   id="si1"/>
                  </af:selectOneChoice>
    <af:table value="#{bindings.LocationsView1.collectionModel}"
                            var="row" rows="#{bindings.LocationsView1.rangeSize}"
                            emptyText="#{bindings.LocationsView1.viewable ? 'No data to display.' : 'Access Denied.'}"
                            fetchSize="#{bindings.LocationsView1.rangeSize}"
                            rowBandingInterval="0"
                            selectedRowKeys="#{bindings.LocationsView1.collectionModel.selectedRow}"
                            selectionListener="#{bindings.LocationsView1.collectionModel.makeCurrent}"
                            rowSelection="single" id="t1" width="581"
                            partialTriggers="::soc1">
                    <af:column sortProperty="LocationId" sortable="true"
                               headerText="#{bindings.LocationsView1.hints.LocationId.label}"
                               id="c3">
                      <af:outputText value="#{row.LocationId}" id="ot4">
                        <af:convertNumber groupingUsed="false"
                                          pattern="#{bindings.LocationsView1.hints.LocationId.format}"/>
                      </af:outputText>
                    </af:column>
                    <af:column sortProperty="StreetAddress" sortable="true"
                               headerText="#{bindings.LocationsView1.hints.StreetAddress.label}"
                               id="c2">
                      <af:outputText value="#{row.StreetAddress}" id="ot2"/>
                    </af:column>
                    <af:column sortProperty="PostalCode" sortable="true"
                               headerText="#{bindings.LocationsView1.hints.PostalCode.label}"
                               id="c1">
                      <af:outputText value="#{row.PostalCode}" id="ot5"/>
                    </af:column>
                    <af:column sortProperty="City" sortable="true"
                               headerText="#{bindings.LocationsView1.hints.City.label}"
                               id="c5">
                      <af:outputText value="#{row.City}" id="ot1"/>
                    </af:column>
                    <af:column sortProperty="StateProvince" sortable="true"
                               headerText="#{bindings.LocationsView1.hints.StateProvince.label}"
                               id="c4">
                      <af:outputText value="#{row.StateProvince}" id="ot3"/>
                    </af:column>
                  </af:table>backing bean code
        public String changecon(ValueChangeEvent valueChangeEvent)
            FacesContext fctx = FacesContext.getCurrentInstance();
            ELContext elctx = fctx.getELContext();
            Application app = fctx.getApplication();
            ExpressionFactory efactory = app.getExpressionFactory();
            ValueExpression vex = efactory.createValueExpression(elctx, "#{bindings}", Object.class);
            DCBindingContainer bindings = (DCBindingContainer) vex.getValue(elctx);
            if (bindings.getDataControl().getDef().getConfiguration() == "HRSharedAMShared")
                bindings.getDataControl().getDef().setConfiguration(valueChangeEvent.getNewValue().toString());
            else
                bindings.getDataControl().getDef().setConfiguration(valueChangeEvent.getNewValue().toString()); //("HRSharedAMShared");
            bindings.getDataControl().resetState();
            System.out.println("configuration name:\t" + bindings.getDataControl().getDef().getConfiguration());
            DCIteratorBinding iter = bindings.findIteratorBinding("LocationsView1Iterator");
            iter.executeQuery();
            System.out.println("iter rows:\t" + iter.getEstimatedRowCount());
            return null;
    }can we do it on model layer also is their any way?
    even I have created the applicationModule Instance in util class at model layer but its returning the proper data at console but not in the GUI table.
    so please tell me the best way to achive it.
    Thanks

  • Programmatically changing JCOs

    Hello all,
    is there an API to programmatically change the JCOs instead of using the content administrator. I often have to switch the underlying R3 system and so dealing with the content administrator is sometimes a little bit monotonous.
    Anyone who has an idea where to find related information, please tell me.
    Thank you
    volker

    Hi
       Well the only way to do what you are looking at is
    1. Create the JCO destinations for the number of SAP systems that you have in the WebDynpro Content Administrator. For Eg : "DEV" and "TST"
    2. Create a properties file called "Connection.properties". Maintain a property in the file say "JCOConnectionName=DEV"
    3. For reading the properties file please refer to the link http://help.sap.com/saphelp_nw04/helpdata/en/b8/aa343e32ff1033e10000000a114084/frameset.htm
    4. Now if the system is down and you would like to change the system name just edit the properties file and change the name from "DEV" to "TST".
    5. The only additional change you will have to do is open up your application and do the following steps.
    Steps :
    If you want to change only the JCO Destinations that your model refers to, then its very much possible to change their names.
    But if the model stucture has got changed , then you should reimport that.
    I guess, trying out the following steps for changing the names will work out for you.
    1) For Medata Dest--
    a) Click on the local disctionary stucture that has been generated by importing the model.
    b) Click on the properties tab on the bottom right corner.There you shoulb be able to change the Metadata dest name.
    2) For Application data Dest-
    a) Right Click on model classes (model_Input & model_output) & then click EDIT.
    b) Same Way, on the bottom right corner , Change whichever proerty you want to alter inlcuding the Dest Name.
    In this way, you can mainten unique JCO references for all the models you are using in your project.
    ReBudild & Redploy the entire project . Create the New JCOs Destinations in the content Admin & happily run your application.
    Let me know if that helps you.
    regards
    ravi

  • Programmatically change tab in TabbedMobileApplication?

    I have a TabbedMobileApplication which has X number of tabs. In a view for 1 of the tabs, I would like to programmatically change the selected tab to another tab, just as if the user clicked on the tab button at the top of the screen. Is this possible? I've looked through the API for TabbedMobileApplication and can't seem to find anything.
    Much appreciated!

    Hey,
    Currently, the best way to change the selected tab programmatically would be to set the selectedIndex on the application's navigator.  You would do this like so:
    FlexGlobals.topLevelApplication.navigator.selectedIndex = x;
    Note that the navigator property in the TabbedMobileApplication class is not the same navigator referenced inside a View.  So doing navigator.selectedIndex inside a view would not work.  I hope that made sense.
    Let me know if you have more questions.
    Chiedo

  • Can I programmatically change a virtual channel's scaling?

    I want to be able to read and write the scaling parameters for a virtual channel. Using NIDAQ 6.8 with MAX 2.0 and LV 6.0.2.
    Thanks

    This question actually belongs in one of the Measurement Devices categories. In the future, please post to the appropriate forum. You will find similar questions and get exposure to others with similar interests when you post directly into one of those categories.
    In answer to your question, you can read the virtual channel properties, but you cannot programmatically change them. If there were a finite number of changes, you could have multiple config files that contained the same virtual channel names. Then, you could programmatically switch which config file MAX was using.
    Alternatively, you can apply the scaling in your program if you read the raw value through the virtual channel (no scale) and then pass it into a scaling function.
    You can find exa
    mples for saving virtual channel properties to a text file and for changing config files in the NI Developer Zone. Start at the http://www.ni.com/support page and choose Example Programs from the Technical Resources pulldown menu. Then, type in keywords, such as "virtual channel" or "change NI-DAQ configuration".
    Regards,
    Geneva L.
    Applications Engineer
    National Instruments
    http://www.ni.com/support

  • "Network settings have be changed by another application" stuck in loops

    I have the exact problem as others with Network System Preferences saying that the settings have been changed by another application. The message goes into a loop that can only be stopped with a Force Quit of the Preferences. I also have the Airport not connecting at start-up without choosing the Network Name from the Airport Pull down menu. I also think it may have started with the last Security upgrade and Java upgrade. I have used the airport utility to reconfig the base station. I discovered a system keychain with a password for the airport that my normal passwords would not open to show what it's password was. I have done many disk permissions and verifications. Any ideas? I would think if this is a Security update error, that Apple would be aware of it by now and post a repair. I have followed some threads on this issue but would rather wait for an Apple fix. There appears to be no way to contact Apple in customer support.

    A Fix for "Your network preferences have been changed by another application" Error
    In the Library/Preferences/SystemConfiguration/ folder delete the following:
    com.apple.airport.preferences.plist
    NetworkInterfaces.plist
    preferences.plist
    com.apple.nat.plist
    You will have to re-configure all your network settings since deleting these files will cause them to be returned to defaults.

  • Problem with internet. When i open System preferences, Network, message drops down: 'your network settings have been changed by another application'. I click OK, but it drops a message again and again, preventing me to do anything about the setting.

    Problem with internet. When i open System preferences, Network, message drops down: 'your network settings have been changed by another application'. I click OK, but it dropps the message again and again, preventing me to do anything about the setting.

    A Fix for "Your network preferences have been changed by another application" Error 
    In the Library/Preferences/SystemConfiguration/ folder delete the following:
    com.apple.airport.preferences.plist
    NetworkInterfaces.plist
    preferences.plist
    com.apple.nat.plist
    You will have to re-configure all your network settings since deleting.
    (10.4.10)
    Use Software Update to update your OS to last version of Tiger.  Install all the other updates that goes along w/it.

  • Open With... How to Change List of Applications?

    I installed Photoshop CS2 recently and now a whole slew of applications show up when I click on a jpg file and select "Open With..." I know how to change the default application for the files, but how do I remove applications from this list? I don't need to ever choose between 40 applications to open jpeg files - just a few. How can I pare down this list?
    Thanks,
    tommy

    Then why don't you remove them yourself? Go to this page and download PropertyListEditor.dmg. It normally is incuded with the free XCode package from Apple.
    Install the app in your Utilities folder and then you can edit plist files whenever you want.
    Open com.apple.launchservices.plist and unfold the object tree. Now you can browse and delete objects. It is recommended you backup the file before messing with it.
    You can also "Dump" the entire file, it might be faster to see what all is in it.

  • Changing field length of a standard field in standard table VBEP

    Hi,
    Please advice the possibility and the possible repercussions of changing field lengths in a standard table. Table in concern is VBEP.
    Thanks & Rgds,
    Pradeep

    No you cannot change the field length
    thanks
    G. Lakshmipathi

  • How do I change the default application to open files.

    I am rather new to Mac OS (using Leopard). I am rather frustrated, that I have not been able to find a way to change the default application that opens PDF files. I looked around the System Prefernces, couldn't find it, searched the Web, nothing. And I could not find an answer in this forum either.
    So here is my question. How do I change the default application for opening PDF files from Preview to Adobe Reader? I do not want to have to click "open with" every time, I want to open a PDF file.
    And how do I do this for other files also? For instance, I may want to open images files with Photoshop instead of Preview.

    Hey ! I was going mad with the same question - and I'm not a complete newbie - so thanks to William for answering it - I knew I'd seen that dialog somewhere, but just couldn't find it. Text edit was driving me crazy telling me that .ppt files were screwed, now I've got em to open with Powerpoint...
    In answer to your last question, Craig, the dialog that appears to ask if you're sure specifically says the change will relate to all .pdf files ( or .ppt or .whatever ), so it won't stop Preview from opening other types of files.
    Thanks for the help - searched Apple support in vain on this one...

Maybe you are looking for

  • How to implement a keyListener in JSF/JSP

    Hello, I�m using JSC and want to implement a keyListener in my application. I want to press ENTER and a method in my java class should be called (regardless of the component, which has the focus). Is this possible (normally, a component must have the

  • How do I rectify an error code 1437?

    How do I rectify an error code 1437? The ipod classic has frozen, none of the controls function on the device. When connected to the laptop a message read need to reset ipod, actioned reset and then a few seconds later the message came up 'unable to

  • Indesign cs3 automatic cut and paste footnotes from one doc. to another

    Dear Indesign Scripters, I making a digital copy of the BIble. The Bible is divided into chapters and verses. Each one of my verses has a footnote reference (thanks to Jongware). Example: 5Shall not Sion say: This man and that man is born in her? and

  • How do I remove Acrobat_com?

    I want to do some housekeeping and uninstall Adobe AIR and what appears to be Acrobat.com from a Windows Vista machine. Removed AIR through Uninstall Programs in Control Panel but an icon called Acrobat_com remained on the desktop - no option to remo

  • Unable to test web services

    Hello folks, I'm hoping this is an easy question for someone! I am working on the Oracle Application Server Control on my local machine. When I navigate to a web service and then try and test it the page doesn't load. Just says "Internet Explorer can