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.

Similar Messages

  • Programmatically Changing Form Attribute on PDFForm

    I have a PDFForm where a subform can be visible or not visible based on data elements. For example, the subform contains financial information and we don't want that section visible if being viewed by customer whereas we want it to be displayed if being viewed by the employee.
    Is there a way to do this programmatically using same form? The only way I was thinking it would be possible is to take the PDFForm get the XDP, perform XML manipulation on it and then regernate the PDFForm (but it just seems like this is a lot of work and so looking to see if there is a better way)
    Thanks

    Property Node:  X scale > Range > Maximum (or whatever)
    Using LabVIEW: 7.1.1, 8.5.1 & 2013

  • Programmatically Change Array to Cluster Size

    Hello,
    I have a Chart with several values scrolling across it. The number of
    values is variable. To prepare the data for the Chart, I use the Array to
    Cluster element. Is there a way I can programmatically change the size of
    the cluster output?
    Thanks,
    Peter

    Peter,
    As far as I know, you cannot programatically chage the size of the cluster output in the Array to Cluster vi. However, you may not need to convert to a cluster for charting. The chart will take a 2D array and plot mutiple lines. See the attached example which uses Reshape Array to form the data for a chart.
    The only hitch is that it erases the plot when you change the number of values to plot. This may or may not be important to you.
    Tim
    Attachments:
    Reshape_array_for_chart.vi ‏18 KB

  • 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.

  • Dynamic Action On change tabular form question

    Hi guys!
    I've wanted to add dynamic action on change (tabular form) to execute PL/SQL which checks if column of the tabular form has changed and if yes it changes walue of text field to Y or N. It doesnt work...and I don't know why. If I create validation with this PL/SQL it works. Can you help?
    DA:
    On change - Tabular Form
    PL/SQL;
    DECLARE
       nazwa     VARCHAR2(4000);
       counter   NUMBER := 0;
    BEGIN
       FOR i IN 1 .. apex_application.g_f08.COUNT
       LOOP
        SELECT NAZWISKO INTO nazwa FROM SPR_META.M_UZYTKOWNICY WHERE NAZWA_UZYTKOWNIKA = apex_application.g_f02(i);
          IF wwv_flow_item.md5(nazwa) <>  wwv_flow_item.md5(apex_application.g_f08(i)) THEN
            counter := counter + 1;
          END IF;
       END LOOP;
       IF counter > 0 THEN
       :P5_IS_TABULAR_FORM_CHANGED := 'Y';
       ELSE
        :P5_IS_TABULAR_FORM_CHANGED := 'N';
      END IF;
    END;Page items to submit: P5_IS_TABULAR_FORM_CHANGE
    What's wrong?
    With regards,
    PsmakR

    Region static id shouldn be in bracketsYou missed the '#' informt of the region id.
    why my original PL/SQL process did not work
    FOR i IN 1 .. apex_application.g_f08.COUNTThis works only when the application array has values and that happens only when the page is submitted.When you submit the dynamic action , it isn't.
    This script combined with script to detect changes makes apex page running very slowIf you use that PLSQL code(assuming it works as expected) , then its going to take a server request every-time you change a field in the tabular form and loop though all the array values(if they would be submitted before) and recalculate and compare the checksums . Isn't that going to be very inefficient.
    As for that JS code, it only runs at the client side. You can do all the server side checks on submit, when the user expects some delay due to processing.

  • 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 change the form of a COPA report?

    Hi,
    I want to change the form of a COPA report. How can i do that?
    Moderator: Please, search SDN

    Save it back.
    InfoObject.save or InfoStore.commit(InfoObjects).
    Sincerely,
    Ted Ueda

  • 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.

  • Can I Programmatically Change the Active Group on a Hypertrend in DSC?

    I would like to know how to programmatically change the active group of a hypertrend in Labview DSC.  I saw a link which said it can be done in Lookout.  But in the DSC module, the active group is read only.
    I know of a hard way to do it.  I could save the hypertrend settings as xmlSettings to a temporary file.  The active group is one of the settings.  I could then change the active group in this text file to point to the new group and then reload the settings.  But this is not a clean way of dong it.
    Anyone know if there is a easy way?
    Solved!
    Go to Solution.

    I found a way to do it but its not very clean.  I dont know why there is not a function to change the current group.
    Here is how I did it.

  • How to programmatically change the password of user accounts in PDF Generator

    I am using 4 user accounts for multi-thread converting Word documents to PDF in PDF Generator ES3, and I have to update the password of those user accounts. Does PDF Generator ES3 save the password somewhere on the Windows 2008 server? Can I programmatically change the password of those accounts other than updating them manually from LiveCycle Admin console?
    Thanks,
    Will

    Not in LiveCycle API.
    Changing user account password is related to Operating System.

  • How do I change a form created by a departed employee?

    How do I change a form created by a departed employee?

    Some of those things involves using the various form field tools that are available in Acrobat 7 Pro (but not Standard). More information on working with forms is in the help doc.
    Moving text that's part of the regular page contents can be difficult or impossible. Deleting things is easier, but still may be difficult to get everything just as you want. The ideal way to make such changes is to change the source document and generate a new PDF, and then in Acrobat replace the old pages with the new (Document > Replace Pages). Any fields and other annotations, bookmarks, code, etc. will be retained.

  • Display FirstName and Last Name on change password form

    Hi,
    I have to display FirstName and Last Name in change password form instead of DN of the user the below syntax is displaying complete DN.
    resourceAccounts.currentResourceAccount[$(name)].accountDisplayName, would appreciate if anybody can guide me on this.
    Thanks

    Hi,
    For anyone searching how to do this, I've modified the Change User Password Form to contain a user's first and last names. As the User view is not accessible from this form, I added the following:
          <Field name='fullname'>
            <Display class='Label'>
              <Property name='title' value='Full Name'/>
              <Property name='value'>
                   <rule name='EndUserRuleLibrary:getRealName'>
                       <argument name='accountId' value='$(resourceAccounts.id)'/>
                   </rule>
              </Property>
            </Display>
            <Disable>
              <or>
                <ref>answersVerified</ref>
                <isnull>
                  <ref>resourceAccounts.id</ref>
                </isnull>
              </or>
            </Disable>
          </Field>      I'm not at all sure this is the best way of accomplishing this, but I couldn't find forum search results that would allow me to display additional user attributes on this form.
    Hope it helps!
    Nick.

  • Changing the form name in a .js file

    hi,
    I am trying to use .js files instead of script in the jsp page with the use of
    <script src="root/scripts/foo.js"></script>.
    This foo.js has got the functions which access the information of the form in which they are included. So if I specify a dummy form name in the script, while a page (say "thisPage.jsp" with a form name "thisForm")is loading I would like all the references in the javascript file which are like this document.someFormName.---- to document.thisForm.--.
    How do I do this.
    regards,
    f

    actually, what you asked is completely a Javascript question. There's nothing JSP related about it. Nothing.
    Your actual question, the one you actually posted, was answered correctly. If your question was wrong, then that's not our problem.
    What does concurrent users have to do with anything anyway? Are they all using the same PC and browser instance at the same time? I doubt it. All the code you are referring to is Javascript code, and that will only run in the browser, not on the server, so concurrent user actions have nothing to do with it.
    If you want to change the form name in JSP, then you can do so when writing the page:
    <form name="<%= theFormName %>" action="..." method="POST">
    Otherwise, 'document.'+name ..., eval(), all that is Javascript, not JSP, has nothing to do with JSP or other users.
    So in conclusion, I don't think it's us people that posted answers interpretting things wrong, it's you who doesn't have any idea what he's doing.

  • Can you programmatically change the width of columns in a table control\indicator

    Is it possible to programmatically change the width of columns in a table control\indicator ie to fit to width of the data or in my case the header information.

    Create a property node (or reference) and use the 'Active Cell' property to select which column you want to change and then use the 'Cell size'--> 'Width' property to change the size.
    "There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
    Attachments:
    table.vi ‏33 KB

  • Programmatically change the query used to generate Oracle Reports

    I have two queries. Depending on some parameter value, I would like to use one of these queries to generate my report. Is it possible to programmatically change the SQL query used to generate the Oracle Report.
    Thanks

    There are two options:
    - The easy way
    In the report paper layout create two frames, one for each query , and at runtime
    display only one based on your parameters. (using format triggers on the frames)
    - the not so easy way (but more elegant)
    create the query at runtime using xml customizations using the examples from
    the following documentation:
    http://download-
    uk.oracle.com/docs/cd/B14099_17/bi.1012/b14048/pbr_xml.htm#i1006734
    16.3 Creating XML Data Models
    16.4.1.3 Applying an XML Report Definition in PL/SQL
    16.4.1.3.2 Applying an XML Definition Stored in Memory
    Regards and Good Luck
    Ionut S

Maybe you are looking for

  • Safari 6.0.2 on Lion 10.7.5 quits every time I open it

    Hi there, Here's what I'm using: Safari 6.0.2 on Lion 10.7.5 Every time I open Safari or Firefox on my MacBook, it quits immediately. But this only happens on my user account. I created a new one, and Safari works fine. I haven't done any troubleshoo

  • After reinstalling CS3 I cannot get bridge (or photoshop) to update

    I had to reinstall CS3 due to some graphics issues. I've restarted the computer and bridge/ps several times...and keep hitting the update button but after updateing adobe reader..it doesn't find anymore updates. So I still have 4.0 and cannot read ca

  • Streaming video over WiFi very slow

    Hi, I started to dealing this unpleasant issue since I guess I updated to last firmware on my Apple TV. Now when I want to stream video from my MacBook or iPad over wifi, the picture is not fluent at all. It is cut (not sure about this word). When I

  • A Swf into a Fla.

    Basically I'm making a website and I have an animation that uses a V-Cam. I want to put this animation into my website. The probelm is if I just load it, you can "see" the v-cam but you're not looking through it. It's wierd to explain now that I actu

  • N8 problem with ovistore even on browser

    hi. I have the n8. My ovistore worked perfectly. Then one day it just stopped working. It shows the ovi screen then close. It wont launch via the website either. I did delete it and restarted phone before reinstalling, but same thing. Also looked for