Copy fields when form is saved

Very simple one,
When I add a new sales quote I want the Total Value edit box to be copied to my Expected Value edit box, as the data is not added to the table yet I thought it would all be available as stings in the edit boxes, hence the following:
  If pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD And pVal.FormType = 149 And pVal.Before_Action = True Then
                oApp.Forms.Item("149").Items.Item("oEdit4").String = oApp.Forms.Item("149").Items.Item("29").String
End If
Please excuse any stupidity, its a steep learning curve......
Thanks,
Dave.

David,
i think you are catching wrong event altogether,
try this.
If BusinessObjectInfo.FormTypeEx = "149" And BusinessObjectInfo.BeforeAction = True And BusinessObjectInfo.EventType = SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD Then
            Try
                Dim oform2 As SAPbouiCOM.Form
                oform2 = oApp.Forms.GetForm("149", 1)
                'MsgBox(oform2.Items.Item("29").Specific.value)
                oform2.Items.Item("oEdit4").Specific.value = oform2.Items.Item("29").Specific.value
         Catch ex As Exception
                MsgBox(ex.Message)
            End Try
         End If
and this is under FormDataEvent. NOT Itemevent. 
Binita
Edited by: Binita  Joshi on Sep 24, 2008 11:20 AM

Similar Messages

  • How do i expand a field in a line with 3 other fields when forms design will not allow

    how do i expand a field in a line with 3 other fields when forms design will not allow it? I also want to shrink one of the fields and cannot do so.

    It is possible that all there is not enough room on your line to grow the field. You can try a few things :
    - Make the form width wider by dragging the right edge of the form or via the Form Setup dialog (File > Form Setup... and change the Form Width)
    - You can make other field on the row narrower (if they are not already at their minimum width).
    Each field type has a minimum width. What field type are you trying to make smaller?
    For example : Text and Multiline can go down to a width of 30. Dropdown min width depends on the length of the long item in the dropdown list.
    Hope this helps
    Gen

  • Position cursor in text field when form is opened

    Another newbee question I'm afraid!
    I want to position the cursor in a text field when a user opens the form. I can't find a way to do it but I'm pretty sure it's straightforward!
    Also, can I remove fields from the tab order?
    Thanks (for your help and patience!)

    Hi,
    You would select the object that you want to receive focus and put the following in the docReady event.
    xfa.host.setFocus("this");
    The docReady event is a good one to use, because it only fires once.
    The tab order can be set in the Tab Order tab. Depending on the version of LC Designer that you have, the flexibility will vary. However I would do this as a last step, as any changes can throw the tab order out of sequence.
    Note that tab order is greatly affected by the relevant x/y coordinates of objects and where objects are in separate subforms.
    Hope this helps,
    Niall

  • Radio Buttons Defaulting to YES when form is saved

    Hello, I'm researching a problem a user has informed me of, and I haven't seen this topic listed anywhere, nor have I been able to figure out why the problem is happening.
    My form has 5 radio button exclusion groups, each with a YES or NO selection.
    When the form is saved with a selection of NO for each group then re-opened, the selected value has changed to YES for all but the first group.
    Anyone have an idea why this is happening?

    Is there any script on the form that could be changing the values after loading?
    As a test, add a button on the form and use this code on the click event:
    xfa.host.exportData();
    When the button is clicked, it will allow the user to choose a filename to save the data into (it will have an XDP extension). Once it is saved change the extension to XML and open it in your browser. Check and see that those button groups are being set. If they are not it could be that they are not bound correctly. Check to see if the Binding is set to none (if so you are excluding these from your data).
    Hope that helps.

  • Updating field when new records saved.

    Hi,
    I was wondering if there are any suggestions on updating a picklist field when a new record is saved (as field updates only work for modified records).
    We recently created a custom Probability % field that is tied to both the Sales Stage and another custom picklist field called "Business Type" (has two options - New or Existing). The Probability % field is updated based on a simple workflow that says if Sales Stage = x and Business Type = y, then Probability % = z.
    For example, if the Sales Stage is = to "Validation" and the Business Type is = to "New", the Prob. % will be 5. If the Sales Stage is = to "Validation" and the Business Type is = to "Existing", the Prob. % will be 10... (just so you get the idea).
    Since the workflow is tied to modified records, the new records keep missing the Probability % field.
    Any suggestions on how we can get those newly created records have an updated Prob. % field would be helpful.
    Thanks in advance!

    Thanks for the response, Min.
    1) I've thought about the post default value, but the problem we encounter is that the user might not create an Opportunity in the very first sales stage- is there a way to place a default in the Prob. % field depending on the sales stage the record is created with?
    2) I thought fields could only be updated when modified records saved - it isn't an option with the "new record is saved". Is there a workaround? I'm still quite new at this, so any help on how I can create a workaround would be great!
    Thanks again.

  • How do I auto populate the date into text fields when form is first opened?

    Hello,
    I read all about the changing the scripts but its not really working for me. I was hoping someone could help me with directions on how to auto populate the date into designated text fields when my adobe document is first opened?
    I am working in Adobe Acrobat 9.
    Thank you,
    Sheri

    When you add a new document JavaScript (Advanced > Document Processing > Document JavaScripts > Script Name (enter something) > Add), you will be given a function skeleton by default. Just delete it and enter the line of code I showed above. Now, whenever the document is opened, the code will get triggered and the field will be updated with the current date. There is no "Document Open" action (at least that's accessible via Acrobat's UI), but this is effectively the same thing since any document-level JavaScripts are executed when the document is opened.

  • Conditional formatting (colour) lost when form is saved and reopened?

    Hi All
    This one has got me confused! I have set drop downs to change color depending on the selection using the following code:
    if ($.boundItem(xfa.event.newText) == "1") {
      this.resolveNode("$").ui.oneOfChild.border.fill.color.value = "153, 204, 0";
    if ($.boundItem(xfa.event.newText) == "2") {
      this.resolveNode("$").ui.oneOfChild.border.fill.color.value = "255, 153, 0";
    etc
    I have this in the 'Change' event and the 'Layout Ready' event, I have also tried it in the 'Initialize' event but with no success. The issue is this: the colour changes fine as the user fills in the form however is lost when they save and reopen (the selection values are fine just the color coding is lost)
    BTW I am saving the PDF with 'Extended Features' as I thought maybe this could be a 'licence' related issue with Adobe Reader
    Does any one have any idea of where to look to solve my problem please?
    Many thanks
    Ellis

    Hi - yes Iv'e tried in in several events inc 'Initialize' anbd 'Layout Ready', 'Doc Ready' - just cant seem to get it to work.
    Here is the troublesome portion of the form, if you add some impact ratings the color will change, then save and close the form, reopen and the color formatting is lost
    Dropbox - BIA Impacts for forum.pdf
    Any help appreciated
    Thanks
    E

  • When creating a fillable form and saving it as a pdf, the default color of the data fields is a light blue. How do I change the color to something else that will copy better, e.g. a light yellow?

    When creating a fillable form and saving it as a pdf, the default color of the data fields is a light blue. How do I change the color to something else that will copy better, e.g. a light yellow?

    It's probably the fields highlight color of the application, which you can change via Edit - Preferences - Forms.

  • With a PDF Dynamic form using show/hide actions, how to ensure that when the completed form is saved, closed and re-opened, the form still show the fields as before it was closed?

    With a PDF Dynamic form using show/hide actions, how to ensure that when the completed form is saved, closed and re-opened, the form still show the fields as before it was closed?
    I have developed a form with fields hidden by default, that become visible based on box ticked or radio button selections.
    My problem is that, when I close the form and re-open it, it comes back to it's default presentation, regardless of the information already recorded in the form (including in the now hidden fields.
    How to correct that
    Thanks in advance for any hint you can provide.

    I've had the same problem. This solved it...
    Go to the "Form properties..." in the File-menu. Select "Run-time" to the left and in the box "Scripting" Preserve scripting changes to form when saved: choose Automatically (Script-based state changes are saved locally in an insecure fashion. This option cannot be used for certified forms).
    Hope it works for you to...

  • Adding saved form fields when page count changes

    It appears that there isn't a way inside of EchoSign to apply a set of forms fields that has been saved to the templates if the new version of the form has a page added or deleted.
    It seems like it would either require the form fields to be edited outside of EchoSign or be recreated from scratch if the form adds or removes a page when it is updated.
    I would appreciate any insight or confirmation.

    The situation would be thus:
    The document for Form Z is created in a program such as Word and has several pages. The Word document is uploaded to EchoSign. This converts the Word Doc to a pdf, and then the form fields added in EchoSign. Then that EchoSign form is saved as a template (both document and form fields) in the Library.
    Now, the client who created the Word document comes back a year later with a revised version of the Word Doc that has one fewer page. If that new Doc is uploaded to EchoSign, the form fields from the first version of the form cannot be imported and applied to the new version because the number of pages in the new document doesn't match the number of pages in the old document.
    This appears to be similar to LiveCycle, where you cannot replace the background pdf unless the new file has the same number of pages as the old pdf.
    Unfortunately, it is quite common for these larger and more complex forms to add or delete pages when they are revised, and those are exactly the forms that one would want to avoid rebuilding from scratch.

  • Acrobat XI Windows 7 - unable to (copy and) paste form fields to a different pdf.

    To maintain a consistent appearance and function in the forms I create for various departments, I copy a few form fields  (text, checkboxes) from an unrelated Acrobat PDF. Then I paste those fields into a different PDF document that I am making fillable.
    I do this because Acrobat does not allow setting a default for certain attributes when creating form fields, i.e. an unchecked scroll option, a default font other than Helvetica (in Acrobat 8, 9, and X). Plus it is time-saving to copy and paste fields that are the same in another PDF, like name, address, phone. etc.
    We just updated to Acrobat XI and Windows 7 and now I cannot paste copied fields onto a different PDF.
    Using "replace pages" is not applicable as I am pasting to an entirely different form and copying form fields with the settings I use. 
    Is this a glitch or is something new that was not in Acrobat 8, 9, and X?
    Also, question regarding this forum entry -  http://forums.adobe.com/message/5638333#5638333 - which is somewhat different from my current question.
    The PDF creator could not paste copied fields on other pages of the same PDF. Was this ever resolved so that copy and paste worked as it has for the last 3 versions of Acrobat?
    Thanks!
    Joanie

    Gilad:  You're right: when the fields are different, such as a checkbox and a text field, and you try to title them the same, Acrobat gives you a message. I received no messages, the field names are not the same or I missed one and Acrobat is no longer messaging about it.
    My question is different. Acrobat XI will not let me paste any field copied from a different PDF.  I've been doing that for 5 years in three different versions.  Maybe Acrobat XI has a new process for that, which I could not find in Acrobat help. Maybe it's because all forms now have extended rights automatically in Acrobat XI and there is another method to copy common fields to other PDFs.
    Any thoughts about the new Acrobat XI? It's different in many good ways, but different.
    Thanks for your ideas.

  • Updating custom field in table EKKO within user exit when PO is saved

    I am trying to update a custom field in table EKKO when a PO is saved.  I am using FM EXIT_SAPMM06E_013, within enhancement MM06E005.  Since EKKO is not a table that can be updated with this user exit, I am using a technic that I read about on SDN where I assign a field symbol to the calling program variable and then am able to access data within EKKO table.  But when I pass this data back into the field symbol, for some reason this field is not getting saved when the PO is saved.  In debug mode, it looks like this field is getting updated, but when I look in the table after the PO is saved, it is not there.  My code sample is below.  What I am doing wrong?
    data:
      CHAR(50) VALUE '(SAPLMEPO)EKKO-ZHDRCSTCENTER',
      g_zhdrcstcenter like ekko-zhdrcstcenter,
      FIELD-SYMBOLS <F1> type any.
    if i_ekko-ekorg = '5401'.
      ASSIGN (char) to <F1>.
      g_zhdrcstcenter = <F1>.
      move '0000113322' to g_zhdrcstcenter.
      <F1> = g_zhdrcstcenter.
    endif.
    Thanks!
    Sarah Smyth.

    Firstly, have you investigated using EXIT_SAPMM06E_008 to set any custom fields you have added in the EKKO_CI / CI_EKKODB structure?.. that might work more easily.
    In terms of doing an assign back into a calling program's memory, it can work but it's probably worth setting a break point in your code then stepping through watching the values in EKKO - sometimes you can find subsequent code that re-writes an earlier copy of values back into the structure, thereby preventing you doing your change...  SAP does warn this method is for "internal use".  Also check in your debugger that it's SAPLMEPO and not SAPMM06E you need.

  • Overridden fields' values not retained after form is saved/reopened

    Hi Everyone,
    Thanks in advance for any help you can provide. I've searched the net, but can't seem to resolve my problem.
    The form itself is somewhat complex. If needed, I can get into the details of how the calculation is done, but may save some time if I just explain the problem:
    I have 3 drop down boxes on my form that are auto-populated based on what is entered in a series of other dropdown boxes. The user is allowed to change the calculated drop downs to another option if they want.
    When the form is saved and reopened, 2 of the 3 drop downs are not retaining the value the user selected if they overrode it. Instead, it's recalculating against the calculation script that's written. Strange thing is that there is 1 of the three drop down retaining it's value perfectly.
    Is there anyway I can save the overridden values, or stop it from recalculating and reverting when the form is saved then reopened? I can't set the fields to disabled/read-only either, in case the user needs to override and save again to something else later.
    Thanks for any help you can provide!!

    Can you email me the document to [email protected] ?

  • When my dynamic form is saved, the added pages (subsections) disapear.

    I have created a form and saved it as a dynamic file.
    There is a button to copy a subsection and allow the user to continually add section
    s and fill them out. When the user saves the form, the additional pages
    are not visable the next time the pdf is opened
    I dont see how to attach my form to this.
    thanks, Mark

    Open your form in Designer, under File/FormProperties/Defaults make sure the "Preserve script changes to form" is set to Automatic
    Paul

  • Cannot input data in matrix field when the form is in add mode.

    I have created an addon form using UDO.The UDO has four child tables.  I input data in the master data fields in form it works but when I come to matrixes for giving data in matrix fields I was unable to input data there .But after saving the data only with master data I reopend the the form with same data using find option.Now the form allows to input data in matrix fields.Please provide a solution so that I can input data in the matrix columns when the form is in add mode.

    Hi,
    After opening the Customized form you have to add a new blank row into your matrix also.
    oMatrix.AddRow(1,1);
    After then only you can input data.
    regards:
    Sandy

Maybe you are looking for

  • When click on restore down button in firefox 32.0.3 the veritical scroll ba is missing and I am not able to view my gmail content or any other data properly..

    After openig Gmail or trying to search any information in google,when i click on restore down buton which is appear near close button,the vertical scroll bar is not showing,I have to maximize the window and then only I am able to view the hole conten

  • Inputs for running /SAPAPO/SDORDER_DEL report

    Hello, We want to run /SAPAPO/SDORDER_DEL report to delete unnecessary Sales orders in the APO system. Before while executing this report I would like to be clear on 2 points: 1. Three tabs with various fields came up after executing this report:    

  • Can't see individual photo files using iPhoto '08

    I recently upgraded to iPhoto '08 Now I can no longer see my individual photo files in the Finder window I need to see these files because I lost (and then recovered) all my photos Now I have multiple copies of each photo, including a very small size

  • PS13 intallation problem

    Got the following message  – 1 fatal error(s), 0 error(s) ---– Payload: Adobe Photoshop Elements 13(64 bit) 13.0.0.0 {609818B9-23EB-4196-B466-EFE05E92A32F} ---– FATAL: DS003: Installer package might be corrupt. Re-download the installer and try again

  • What channel has httpd in it?

    I'm setting up a yum repository for my new Oracle VM 3.1.1. All is going fine, but my best guess so far for the channels I must subscribe to may not be ideal. I've subscribed to: Oracle VM 3 latest (D-oh! that's why I'm doing this) Enterprise Linux 5