Form Ready Event
I have created XDP file containing one text filed (ABC) on which I putted the JavaScript in "form:ready event " which concatenated the three files and puteed the concatenated result in above text filed(ABC). It is working fine.
When I generated above XDP file using Livecycle Workbench it is getting generated properly and I am able to save it also.
But when I open it and if I edited any other filed besides(ABC) and if I saved and reopen it I found that the concatenated data in the above textfiled(ABC) get repeated. It will get repeated/Edit.
Any one knows how to stop it.
If I understand your question properly, it seems perfectly reasonable what is happening.
The form ready event, as the documentation said, initiates after the form design and data are merged, the finished form exists in memory, and the initialize, calculate, and validate events are complete. So, every time you reopen your form a new Form Ready event is launched and the script is executed.
I think that if you want to change this behaviour you have to change the event that executes the script or put more controls in the script first of doing actions (i.e. concatenating the string).
Can you share your form in order to realize if I understand well your question?
Hope this helps,
Alessio
Rome, Italy
Similar Messages
-
How to run recordset SQL query in FORM DATA event
How can I run recordset SQL query in FORM DATA event upon clicking on Add button in the document?
Hi Slamet,
When you receive a form data event you have a class containing inside it a ObjectKeys xml info regarding the object added/modified,...
With the objects keys you can then use the DI API method called GetByKeys to obtain the DI Object.
There is some information about it in the SDK Help file, mainly in the "FormDataEvent" class definition:
<i>The event provides the unique ID (BusinessObjectInfo.ObjectKey) of the modified business object. You can use the value of this property as an input parameter in the DI API DataBrowser.GetByKeys method to get a DI object.</i>
Pay attention you don't have this information in the Before=True event of the Add as it is not yet in the database.
Hope it helps
Trinidad. -
Revision: 15196
Revision: 15196
Author: [email protected]
Date: 2010-04-01 21:16:48 -0700 (Thu, 01 Apr 2010)
Log Message:
Fix bug FM-621: SerialElement dispatches READY event twice. Fix inconsistency between MediaPlayer.stop implementation and ASDoc (i.e. the method should always rewind). Temporarily disable DurationElement test, needs some investigation as to why it behaves so different from the other MediaElement-in-MediaPlayer tests.
Ticket Links:
http://bugs.adobe.com/jira/browse/FM-621
Modified Paths:
osmf/trunk/framework/OSMF/org/osmf/elements/compositeClasses/SerialSeekTrait.as
osmf/trunk/framework/OSMF/org/osmf/media/MediaPlayer.as
osmf/trunk/framework/OSMFTest/org/osmf/OSMFTests.as
osmf/trunk/framework/OSMFTest/org/osmf/media/TestMediaPlayer.as -
Bug when seeking in "ready"-event?
Hello everyone!
I can't browse the bug-database at http://bugs.adobe.com/jira/browse/ST, it seems offline right now.
I've stumbled across a small bug: When I want to start playback of a video at a certain position, I'm putting a setCurrentTime()-call in the mediaPlayerStateChange-callback when the "ready"-event is received.
This works fine, however then the seeked position is position 0 in the video, which means that getCurrentTime() reports 0 and
setCurrentTime(0) doesn't seek to the beginnig of the file but to the position seeked to in the ready event.
Maybe this a feature, but it's very unexpected behaviour.
I can seek in the "playing"-event, but then unnecessary data is buffered.
ThanksI've encountered the same problem as I had to develop a 'seekTo' feature in our custom implementation of Strobe.
You can't seek until play is fired. By then, it's too late to jump to time and it looks clonky, plays the 0 position and jumps to the desired spot.
The fact is that seek is ignored if "mediaPlayer.canSeek" is false. It becomes true when the media gains seek trait...
Now that I think about it, maybe calling "load()" on the load trait prior to calling seek on the player would do that (that's if there's no error on the media load).
In essence, you want to get the media to connect to the stream manually by calling load on the load trait. I figure that would work, but haven't tried yet... -
How to Execute a code in form postSubmit event
Dear all,
I have a simple code which is executed perfectly when I put it in form :preSubmit: event but when i moved it to the :postSubmit: event it doesn't work at all .
Please let me know where to put my code if I need it just to be executed once the form submitted ??
Thanks in advanced,
Mohammed Al-MoslehTry using this code:
var vMsg = ""; //message to display for the missing required fieldsvar successflag = 1; //flag to determine if any required field is null
//validate all required text fields
for (var nPageCount=0; nPageCount<xfa.host.numPages; nPageCount++) {
var oFields = xfa.layout.pageContent(nPageCount,"field");
var nNodesLength = oFields.length;
for (var nNodeCount=0; nNodeCount<nNodesLength; nNodeCount++) {
if (oFields.item(nNodeCount).mandatory == "error" ){
if (oFields.item(nNodeCount).rawValue=="" || oFields.item(nNodeCount).rawValue==null){ vMsg += oFields.item(nNodeCount).name + ", ";
successflag = 0;
---------write your code
if (successflag == 1)
execute the insert into database code
else
xfa.host.messagebox(vmsg); //displays the missing field names
Regards,
Chaitanya -
Invalid Item in Form Load Event
Hello,
i have a problem to access items in Form Load Event. If I use a form created with screen painter and I want to set some values to items (EditText, Grid, ComboBox) in FormLoad event. I get a message "invalid item". Same if I use the event FormActivate. Is it a bug? And if yes, when do you fix it?
Best regards,
AlexanderHi Alex,
I haven't try the code, but I think there are just one things to try.
I think, is convenient to use the FormUID params to retrive the form instead the use of Forms.GetForm() method.
Please try this one and let us know the result.
Private Sub moSBOApplication_ItemEvent( _
ByVal FormUID As String, _
ByRef pVal As SAPbouiCOM.ItemEvent, _
ByRef BubbleEvent As Boolean) Handles sboApplication.ItemEvent
Try
If Not (pVal.FormTypeEx = "frmPlan") Then Exit Sub
Select Case pVal.EventType
Case BoEventTypes.et_FORM_LOAD
If pVal.BeforeAction = True Then Exit Sub
oForm = sboApplication.Forms.Item(FormUID) ' try this one
oForm.EnableMenu("1288", True)
oForm.EnableMenu("1289", True)
oForm.EnableMenu("1290", True)
oForm.EnableMenu("1291", True)
initGridAD(oForm)
Case BoEventTypes.et_FORM_ACTIVATE
If pVal.BeforeAction = True Then Exit Sub
oForm = sboApplication.Forms.Item(FormUID) ' try this one
initGridAD(oForm)
End Select
Catch ex As Exception
sboApplication.SetStatusBarMessage(ex.ToString(), BoMessageTime.bmt_Short, True)
End Try
End Sub
Private Sub initGridAD(ByVal oForm As Form)
Dim oGrid As Grid = oForm.Items.Item("gridAD").Specific ' *here I'm gettig an error*
Dim oDataTable As SAPbouiCOM.DataTable = oForm.DataSources.DataTables.Item("DTgridAD")
If not oDataTable.Rows.Count = 0 Then Exit Function
oGrid.DataTable.ExecuteQuery("Select '' as 'Choose', SlpCode as Code, SlpName as 'Name' From OSLP")
oGrid.Columns.Item("Choose").Type = BoGridColumnType.gct_CheckBox
End Sub
Is this code hosted in a module or in a class?
If is in a class, how many instancens of class exist when you get the error?
Hope this helps.
Carmine -
How to handle form close event or escape key press event for user defined f
Experts,
Please let me know how to handle form close event or escape key press event for user defined form...
Thanks & Regards,
Pravin.Hi
You can catch the form close event like this
If ((pVal.FormType = 139 And (pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_CLOSE)) And (pVal.Before_Action = True)) Then
Try
SBO_Application.SetStatusBarMessage(pVal.EventType.ToString())
Catch ex As Exception
SBO_Application.SetStatusBarMessage(ex.Message)
End Try
End If
Hope this helps
Regards
Arun -
How can I detect Form Open event and Import data event ?
We are using Adobe Designer 7 and Adobe Reader 7.0.5. When we open a Form, Initialize event is being called. Similarly when we Import any data, initialize event is being called. At the Initialize event, I want to know whether it is caused by Opening the Form (or) Importing the data. Please respond as we were completely stuck up with this issue.
My screenshot was only an example how you can approach the issue. I wasnt saying that you should try it with AI....
Just take a closer look into the DAQmx Events and you will discover something like this:
hope this helps,
NorbertMessage Edited by Norbert B on 10-05-2007 02:35 AM
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Attachments:
DAQmxEvent.PNG 11 KB -
Revision: 14227
Revision: 14227
Author: [email protected]
Date: 2010-02-17 17:10:34 -0800 (Wed, 17 Feb 2010)
Log Message:
FactoryElement no longer emits a Ready event when it's finished creating it's media element.
Modified Paths:
osmf/trunk/framework/OSMF/org/osmf/elements/FactoryElement.as
osmf/trunk/framework/OSMF/org/osmf/elements/proxyClasses/FactoryLoadTrait.asRemember that Arch Arm is a different distribution, but we try to bend the rules and provide limited support for them. This may or may not be unique to Arch Arm, so you might try asking on their forums as well.
-
Newsletter form activating event registration form
I have a newsletter form in a content holder that is part of my template. When a user signs up for the newsletter while on the event registration page, it activates the event registration autoresponder email saying that they signed up for the seminar.
Is there a bubble issue within the BC js? Any suggestions would be appreciated.
Thanks!Hi,
We want to give the customer the option of either paying by credit card on our own site (which is seamless) but we also want to give them the option of going to the paypal site which is why we have that radio button option. It seems that if the submit button is pressed but they don't go through with the payment on the paypal site that the event booking still takes place. I know about the "Pay Now" buttons that are used with Paypal standard but the option to insert the paypal payment method is available from the web forms sections of BC. I created the form using the e-commerce part of the web forms section so the option seems to be built into the form code by the BC developers. I'm just wondering whether this is a limitation of using a form with a paypal option on an event booking form. Do you know if there is a workaround, ie. whether there is any code that could check to see if the payment went through before creating the event booking?
There's also another problem that I ran into when I did a complete test, by clicking the paypal option, and then going through with a payment on the paypal site. The payment went through successfully but then when the browser tried re-directing back to our site, I got the following error:
ERROR: An unknown error occurred. This is most likely due to the merchant profile not being set up correctly. Please contact your system administrator for help
I spoke to Paypal about this and they said that this was a problem with the BC code. Do you know what causes this error and what the workaround is?
Really appreciate any further help. -
Interactive form - Submit event - NetWeaver 2004s
I have problems with Submit event of UI element InteractiveForm in "SAP NetWeaver 2004s" box.
The event doesn't get filred.
I have no problems with the identical Webdynpro/Form in "SAP ECC 6.0" box. Submit event gets fired in ECC.
Both wendynpro's has UI InteractiveForm properties:
dispalyType = native
Enables = checked
Both forms have ZCI layout, ContainerFoundation_JS loaded and Submit button from WebDynproNative library.
It seems like Webdynpro in Netweaver box doesn't understand UI Interactive.
Webdynpro Support package is missing?
Please advice.
Thank you
TatyanaChris,
From SPAM I can tell about the component SAP_BASIS.
in "ECC 6.0" box:
Software C = 700, SP-level = 0020, Support Package = SAPKB70020, Short Desc = "SAP Basis Component"
in "SAP NetWeaver 2004s" box:
Software C = 700, SP-level = 0017, Support Package = SAPKB70017, Short Desc = "SAP Basis Component".
ADS is a standalone server. It talks to both "ECC 6.0" box and "SAP NetWeaver 2004s" box.
I don't understand your question "Both are NW7.00 boxes? ".
Both boxes have a component called SAP_BW. Here is info from SPAM:
in "ECC 6.0" box:
Software C = 700, SP-level = 0020, Support Package = SAPKW70020, Short Desc = "SAP Netweaver BI 7.0"
in "SAP NetWeaver 2004s" box:
Software C = 700, SP-level = 0019, Support Package = SAPKW70019, Short Desc = "SAP Netweaver BI 7.0"
Tatyana -
Interactive Form for HCM Processes & Forms: Custom Event not firing ?
ECC6
EP7
Adobe Reader: 8.1.2
I am currently developing several Adobe interactive forms as part of an HCM Processes and Forms process. I have started to try to utilize custom form events. Following the documentation, I defined a custom event on the backend...lets say "USER_EVENT_S1". I assigned it a field group of fields and gave it the operation for "check". On the form side, I defined a pushbutton and changed it's "mousedown" FormCalc code to:
//Set ISR_EVENT for BAdI processing in backend
$record.CONTROL_PARAM.ISR_EVENT = "USER_EVENT_S1"
I then activated the form and went to test it. When clicking the button tied to this event, it does absolutly nothing. I have external breakpoints set on the backend to my custom service that should fire for those fields that are part of the field group. The breakpoints trigger correctly as the form itself loads and hits the "initialize" and "F4 value help" methods. However, it is not doing anything when I press the assigned button to trigger my own user event.
Any help ?!?!? I see only one implementation from SAP in their standard content and their own user event is not even implemented in the form! (form scenario S_HRPA_DE_REHIRE_1). That's not very reassuring or helpful. hahaI figured it out this morning. It seems I was using the wrong (older?) button control.
The one that did NOT work had the following for the "click" event....
//Trigger call to backend for BAdI user command processing
app.eval("event.target.SAPSubmit();");
However, the one that DOES work has this:
//Trigger call to backend for BAdI user command processing
ContainerFoundation_JS.SendMessageToContainer(event.target, "submit", "", "", "", "");
Both are called an "ISR_FormEventButton" however, I guess mine was from an older "library". Anyways...works great now! Back to development....
(points to the reply for trying to help at least! Thanks!) -
Hi All,
I have an HTMLB form where I have a submit button with an onClientClick javascript check function.
When I hit submit, the javascript executes, finds an error and then allows the form to go on with processing which is what I do not want to do.
I want the HTMLB form to suspend execution in case the JavaScript function returns an error.
I trigger the error by adding
return false;
to the end of js function.
Is there another way to do this?
Thanks,
RomanHI
GOOD
YOU CAN DO THE SAME THING USING THE IF LOOP
IF THE EVENT IS TRUE THAN YOU CAN COMEOUT FROM THE JAVA SCRIPT FORM.
THANKS
MRUTYUN -
Setting the focus to a text field on a subform in the form initialize event.
I have a form that checks the rawValue of a text field to determine whether or not the focus should be set on a particular text field. Here is the logic:
if(txtEmailVisible.rawValue == "visible")
frmEmailData.presence = "visible";
xfa.host.setFocus(xfa.form.NEDA.main.frmEmailData.txtEmailBody);
else
frmEmailData.presence = "hidden";
For some reason the focus isn't going to that object, instead it is still going to the first field in the tabbing order. Am I calling this in the wrong event, which is causing the tabbing order to over ride my setFocus call?
Thanks,
ChadTry using setTimeout for this from the DocReady event.
app.setTimeout("xfa.host.setFocus(xfa.form.NEDA.main.frmEmailData.txtEmailBody);
", 250);
There are several occasions where code must be executed after init/formReady/DocReady, etc. has been completed. This is one of them. -
R12: Form Trace event 135 - DB Processing
Hi All,
I enabled form trace for my Ebiz user. I set form runtime parameter to "record=forms tracegroup=32,64,98,100,101,135,136,137"
As per document event number 135 is for "DB Processing (Start & End)" but I dont see any of these event recorded in trace file (in xml file). I see event 136 (DB Logon) and 137 (DB Logoff) but I dont see the processing time.
I want to know exactly how much time the form spent in database (querying or executing some packages).
But what I see is DB Logon at the start and DB Logoff at the end. So that is almost the entire duration I used the form. But I want to find out how much time it actually spent in database.
Please advise.
Thanks,
AppsDBAHi,
Were you able to test other event numbers and see if it works (just to verify that events work with the way you obtain the trace file).
If other events work, try to use events between 97 and 101 (mainly 98 and 101) and see if it helps.
8.5 List of Traceable Events
http://download.oracle.com/docs/cd/B14099_19/web.1012/b14032/tracing005.htm#i1044390
If none of the above helps, you may need to log a SR then.
Thanks,
Hussein
Maybe you are looking for
-
Ios 8.0.2 way too slow on 16GB 4S
I updated from ios 7 two days ago and my 16GB 4S is WAY too slow. It is really noticeable in Mail and Safari, the two programs I use the most. I am really mad and discouraged at the lack of warning and the rather large (negative) impact it has made o
-
Mapping edited in Integration repository
Hi can anyone let me know which all mappings are edited in integration repository regards jm
-
Iphoto 'PUBLISH' to Facebook is 'grayed' out and will not publish
When I attempt to 'PUBLISH' pics from iphoto to facebook, the 'PUBLISH' is 'grayed' out and will not work? Kindly advise please. Love you! :-)
-
I have a simple java file which reads huge files and writes them to database , I am getting out of memory error frequently , please tell me what memory arguments do I have to add to make this work ?
-
Revision: 14804 Revision: 14804 Author: [email protected] Date: 2010-03-17 01:45:39 -0700 (Wed, 17 Mar 2010) Log Message: Changed securityConstraint samples to use a channel that has login-after-disconnect=true. Login after disconnect does not