Error with JavaScript on XDP form rendered as HTML
I have saved a form as an XDP and am rendering it as HTML with LiveCycle Forms Server ES. When I click on certain form buttons that cause JavaScript code to fire, I get the following error:
this._peer is undefined
I've seen this error posted in a few Adobe forum posts without answers. Any ideas?
- Nate
It is a regular button that fires code that does a popup dialog box. It works fine when the form is rendered as a PDF; I get the "this._peer is undefined" error when I render it as HTML and try to run the code. Here's the code:
var insert_clauses =
result:"cancel",
DoDialog: function(){return app.execDialog(this);},
strpop1:"",
SetListSel:function(list,path){if(path.length == 0) return;
eval("list[\""+ ((typeof path.join != "function")?path:path.join("\"][\"")) + "\"] = 1")},
GetListSel:function(oLstRslts,path){
for(var item in oLstRslts){
if( ((typeof oLstRslts[item]=="number")&&(oLstRslts[item]>0))
|| this.GetListSel(oLstRslts[item],path) )
{path.push(item);return true;}
return false;
initialize: function(dialog)
//this.xfa.form.Ultra_Form.Page1.clauses.rawValue;
//var listpop1 = {"Clause1": -1,"Clause2": -2}
var listpop1 = {};
//listpop1["Select a clause to insert"] = 1;
//xfa.resolveNode("xfa.datasets.data.Ultra_Form.Page1.clauses").value
var arrClauses = xfa.resolveNode("xfa.datasets.data.Ultra_Form.Page1.clauses").value.split("||"); //
var num=0;
while (num < (arrClauses.length))
var test = arrClauses[num];
listpop1[test] = -num;
num+=1;
//dialog.load({"pop1": listpop1});
this.SetListSel(listpop1, this.strpop1);
var dlgInit =
"pop1": listpop1,
dialog.load(dlgInit);
commit: function(dialog)
var oRslt = dialog.store();
var path = new Array();
this.strpop1 = (this.GetListSel(oRslt["pop1"],path))?path.reverse():"";
description:
name: "Insert Clauses",
elements:
type: "view",
width: 757,
height: 86,
elements:
type: "view",
width: 735,
height: 43,
char_height: 10,
elements:
type: "popup",
item_id: "pop1",
name: "clauses",
width: 717,
height: 23,
char_width: 8,
type: "ok_cancel",
// Example Code
insert_clauses.strpop1 = "";
if("ok" == insert_clauses.DoDialog())
if(this.xfa.form.Ultra_Form.Page1.Seller_Name.rawValue == null)
cur_val = "";
else
cur_val = this.xfa.form.Ultra_Form.Page1.Seller_Name.rawValue;
new_val = cur_val + insert_clauses.strpop1;
this.xfa.form.Ultra_Form.Page1.Seller_Name.rawValue = new_val;
xfa.host.setFocus("this.xfa.form.Ultra_Form.Page1.Seller_Name.somExpression");
app.setTimeOut("xfa.host.setFocus('" + this.xfa.form.Ultra_Form.Page1.Seller_Name.somExpression + "');", 10);
Similar Messages
-
Cannot get form items with this.resolveNode() in a form rendered as HTML
I refer to the thread http://forums.adobe.com/thread/906775?tstart=270 with a similary problem with a form which rendered as HTML page.
I have built a dynamic form with Designer. The form contains a group with three radio buttons. Each radio button is assigned to a subform container. The first radio button is preselected and the assigned subform is visible. A click to a radio button makes the assigned subform visible and hides the others.
In the PDF preview in works fine.
But when I render the form as HTML page and click into a radio button, I get a "javascript error: 'this.resolveNode('formName') is null or not an Object...". The cause of this error message is known. The script cannot find the subform container named "formName" because it is a DIV-container named like "formName_init_[0]" in the HTML page.
My questions are: What should I do to refer the correct container names?
Is it possible to create such dynamic forms with Designer and render them as HTML form pages?
Thanks to all for an answer.
Greets from Flash DocNever mind, found a way...
-
Accessing Context Data with JavaScript in Adobe Form
Hi,
does anybody know, how to access a context element with javascript in an adobe form, because I have to decide which elements will be shown at the form, depending on one context value.
Thank you for your help!
Kind regards, Patrick.Hi,
First of all your WD context is mapped to the data view in the form. You can only access via scripting what is mapped to the data view and you get the values that the PDF currently has stored. The WD context and the data values in the context might differ (eg. due to editing).
Use scripting like xfa.resolveNode("xfa.dataset.data.<path.to.the.node>") to get a reference to the data node.
Then you can use the "value" property to access the data value.
Regards
Juergen Hauser -
Hello, is there anyone that can assist me with this problem,
it has been a month or two now and no one has answered me...this
matter is important to me...
I am on my third trial version of 'Contribute'
This is my problem:-
I am experiencing an annoying problem, I cannot edit my
website because, along the way Contribute3 throws up errors to do
with javascript.
E.g, when trying to copy any image, text I get the following
error:
While executing DWMenu_Edit_Cut command in ccmenus.xml, the
following JavaScript error(s) occurred:
Then when I try to save the page:
"While executing onLoad in_afterSave.htm, the following
Javascript error(s) occured:
In fine "" _afterSave"":
ReferenceError: afterSave is not defined"
It does save the page, but I have to keep clicking the
errors
In addition to that, I am unable to view my style sheet
options (this is already enabled) ...
Does any one have any other options?... Can anyone assist
with this I cannot keep using th trial versions - as I use
Contribute on a daily basis...Jennifer,
I'm not sure if I can answer your question directly but, if you simply move the location of your code, it will work. You want this to execute when the page loads, right?
Just go into the Page properties. IN the section labeled "JavaScript" find the text area labeled "Execute When Page Loads" in there, put:
$x_HideItemRow('P150_OTHER');That will execute the hide command whenever the page loads.
-Joe -
Navigating pages when form rendered as HTML
I successfully created an XDP that my website will render as either PDF or HTML depending on the user's preference.
However, I can only get the first page of the document to display when it is rendered as HTML.
Could anyone help me figure out how to navigate to the other pages?
ThanksI believe you need a button on your form with a click event set to run at the server. The script should be xfa.host.pageDown() or xfa.host.pageUp().
You'll probably have better luck on the LiveCycle Forms forum. -
Error with a procedure in Forms 6i
Hello,
hope someone can help:
Im running Forms6i client /server and have a problem with a procedure. What I wish to do is to fill some text_item in a block with values from a query like this:
Procedure test is
BEGIN
select distinct ( pc.d_id), pc.min_value, pc.max_value, pc.def_value, pc.act_value
into :blk_multi.c_id,:blk_multi.txt_multi_min,:blk_multi.txt_multi_max, :blk_multi.txt_multi_def, :blk_multi.txt_multi_old_value
from par_car pc, c_list cl
where pc.par_id = 21 and pc.d_id IN (select cg.ce_id from cel_group cg where cg.gr_id like 'TEST') and
pc.d_id = cl.c_id
order by pc.d_id desc;
end;
In my form I have a button and in trigger WHEN-BUTTON-PRESSED I call this procedure. It returns error message FRM-40735 WHEN-BUTTON-PRESSED trigger raised unhandled exception ORA-06502. What causes this error message?
Regards
RoarRoar,
2 comments:
1. Query into PLSQL variables and not forms fileds. After a successful query, set the value in teh variables to teh forms fields
2. another problem with your implementation is that it breaks when many rows are retruned. You should use a cursor that loops trhough the query result sets. This way you are save.
Frank -
Error with reCAPTCHA when submitting form on Business Catalyst hosted site
Hi
Just had a client complain that the webform on their MUSE website isn't submitting correctly. When I tested this myself the image verification for reCAPTCHA is failing and throwing out an error on a new page.
As it is a BC hosted website, the form no longer requires a verification key (it was previously hosted elsewhere until recently).
I've since discovered this happening on another of my websites... Any ideas please?
The error I see is:
ERROR: An error occurred. Image verification failed. If you believe this is incorrect, please contact your system administrator or go back and re-submit the formThere can be few reasons for this including captcha or recatcha included in the form , any html edit with form etc.
Please provide the page url where form is inserted so that we can check on our end, additionally have you tried to re-insert the form and then check or update the site again from Muse to BC ?
Thanks,
Sanjit -
FRM-40112 error with 10g Release 2 Forms
How do I get around the FRM-40112 error (attempted go-item to non-enabled item) in 10g? I want to present a column but not have the user modify it. This is an update/insert form. I can make it not keyboard navigable but the user can use the mouse to get to it and change it if it is enabled. I want to fix this instead of using the FORMS_REJECT_GO_DISABLED_ITEM environment parameter.
Thanks,
DaveYeah, the UPDATE_ALLOWED=FALSE works, but there is one column that is changed programmatically by the form and shown to the user. I need it not ENABLED but UPDATE_ALLOWED = TRUE. I may have to go with FORMS_REJECT_GO_DISABLED_ITEM=FALSE and revisit in the next release. It looks to me like this a catch-22.
-
?BUG? App Export / Import error with javascript
Greetings -
Anyone have an idea on how to get around this or if I'm doing something wrong?
I have a page button to collapse a tree, with a URL Target of:
javascript:apex.widget.tree.collapse_all($v(P2130_TREE_ID));
Page and button work fine, have never had a problem. Until I went to do an application import and found that the SQL file for the import was corrupted due to the above line. SQL file has:
p_button_redirect_url=>'javascript:apex.widget.tree.collapse_all($v(P'||to_char(2130+www_flow_api.g_id_offset)||''_TREE_ID));',
It appears to have an extra (2x) single quote right before _TREE_ID. I have this logic in several places in my application and every place caused the same error.
Application copy also fails with same error.
Thanks,
ScottTom -
I assume this is the prior post you where talking about : https://forums.oracle.com/thread/2401714
However, this doesn't cover my problem. I have tried all the follow, and they all break export / import and copy functionality due to mismatched quotes:
collapse_all($v(P2130_TREE_ID));
collapse_all($v('P2130_TREE_ID'));
collapse_all($v("P2130_TREE_ID"));
collapse_all('&P2130_TREE_ID.');
collapse_all("&P2130_TREE_ID.");
These all allow the collapse button to work.
NOW, if I change my ID tag to be something like 'P_SCOTT_TREE' then everything works just fine (import/export/copy). It's having a number in the tag that is cause the problems because the export is casting it to_char and somehow throwing in an extra quote.
Thanks,
Scott -
ICF-IE-http error with PO change from former SC in SRM
Hello Gentlemen,
Le Radis will be delighted to reward you points if you can explain why we get the following error message each time we try to modify a PO (already sent to the vendor) that is created from a shopping cart that is a copy from a former shopping cart.
Context : SRM 4 (EBP 5) SP08 connected to a NON-R3 backend through XI. In the shopping cart there is a product number (not only material group with free text).
The error message (in spanish but easy to understand):
Nota
 El texto error siguiente se ha procesado %=SYSYSID%> en el sistema: An exception that could not be caught occurred.
 El error se produjo en el servidor de aplicación XXX y en el proceso de trabajo 0 .
 La clase de cancelación ha sido: RABAX_STATE
 La jerarquía de llamada ABAP ha sido:
Function: BBP_PD_ABORT of program SAPLBBP_PDH
Form: ABORT of program SAPLBBP_PDCV
Form: CHANGE_VERSION_MAP_ORG of program SAPLBBP_PDCV
Form: CHANGE_VERSION_UPDATES_ACTIVE of program SAPLBBP_PDCV
Function: BBP_PDCV_UPDATE_ACTIVE of program SAPLBBP_PDCV
Form: PROCDOC_CHECK of program SAPLBBP_PD
Function: BBP_PROCDOC_CHECK of program SAPLBBP_PD
Function: BBP_PD_PO_CHECK of program SAPLBBP_PD_PO
Form: CHECK_PO of program SAPLBBP_PO_APP
Form: PROCESS_EVENT of program SAPLBBP_PO_APP
Código de error: ICF-IE-http -c: XXX -u: XXX -l: -s: SRD -i: XXX -w: 0 -d: 20060809 -t: 132018 -v: -e: UNCAUGHT_EXCEPTION
Any clue, any bright idea, any experience, please feel free to answer
Best regards,
Le RadisHi,
See if the foll notes are helpful.
833205
661912
769709
HTH.
BR,
Disha.
Pls reward points for helpful answers. -
QUERY ERROR WITH WILD CARD ON FORM WHEN NO DATA WWC-49102
Portal 30985 ; database 9014 on sun solaris
Same server : two databases 9014 : db1 with portal and db2(used here as remote database);
Step1 ; Create public database link; db_link on db1 through Portal interface;
Step2 ; create public synonym emp_syn for table emp@db_link through Portal interface;
Step3 :create form based on emp_syn;
the form is generated OK and also is behaving OK when Insert,Update,Delete from
underlying table ;but when I am quering for 758% into the empno field I've got the same error:
Error: An unexpected error occurred: ORA-00000: normal, successful completion (WWV-16016)
No conversion performed for type NUMBER, value 758%. (WWC-49102) INSTEAD OF RETURNING EMPTY FORM(NO ROWS)
I have tryed to query on other fields ;
querying on a numeric field will give the above message;
querying on a varchar or date field with or without wild card will raise the following error:Error: An unexpected error occurred: ORA-00000: normal, successful completion (WWV-16016)
An unexpected error occurred: ORA-00000: normal,successful completion (WWV-16016).
LawrenceHi Mike,
You can actually just check for the existence of the cell:
var l_Cell = $x(pId);
if (l_Cell)
rest of the code to hide the column
}As long as l_Cell refers to a valid page item, then the if test passes and the rest of your code can run.
Andy -
Error with Web Deployment of Forms 6 - Please Help
Hello Everyone - here is the issue we are having: We are deploying our app via the web and occaissionally it will hang and lock out the user id (it does this randomly). I have set the sqlnet.expire_time=2 on both the NT web server and the HP box, but that doesn't seem to make any difference. Also, when the app locks the user out, we get an error on the NT box with the following text:
Assertion failed!
Program: D:\ORANT\bin\ifweb60.exe
File: E:\f992w32\src\ix\ixfs.c
Line: 67
Expression: window !=(ixobj*)0
For information on how your program can cause an assertion failure, see the Visual C++ documentation on asserts
(Press Retry to debug the application - JIT must be enabled)
I know that this is pretty vague, but I was wondering if anyone else has experienced this sort of problem and if there is a solution or work around.
Thanks in advance for any assistance.
Nicole Hamreall this information is on OTN.
You need to do some reading though.
Check out:
http://otn.oracle.com/products/forms/techlisting.html#internet
and for sizing check out:
http://otn.oracle.com/products/forms/pdf/6iscalability.pdf -
Error with javascript under HTML body attribute
Hello,
I put this onload="$x_HideItemRow('P150_OTHER')" under HTML body attribute, however, i got an error:
1 error has occurred
You may not declaratively set cursor focus if you specify an ONLOAD in this attribute. You can programatically set cursor focus by using the following syntax:
onload="mystuff(); first_field();"
How to fix this?
Thanks,
JenniferJennifer,
I'm not sure if I can answer your question directly but, if you simply move the location of your code, it will work. You want this to execute when the page loads, right?
Just go into the Page properties. IN the section labeled "JavaScript" find the text area labeled "Execute When Page Loads" in there, put:
$x_HideItemRow('P150_OTHER');That will execute the hide command whenever the page loads.
-Joe -
SharePoint Designer 2007 - Errors with Edit Document Properties Form
All,
I'm using SharePoint Designer 2007 and in two of my document libraries when I upload content I get this error:
Object reference not set to an
instance of an object. at
Microsoft.SharePoint.ApplicationPages.UploadPage.GetEditFormUrl(SPFile spfile)
at Microsoft.SharePoint.ApplicationPages.UploadPage.OnSubmit(Object o,
EventArgs e)
at
System.Web.UI.HtmlControls.HtmlInputButton.OnServerClick(EventArgs e)
at
System.Web.UI.HtmlControls.HtmlInputButton.RaisePostBackEvent(String
eventArgument)
at
System.Web.UI.HtmlControls.HtmlInputButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
eventArgument)
at
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl,
String eventArgument)
at
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,
Boolean includeStagesAfterAsyncPoint)
So - when I open the EditForm.aspx page and attempt to add the proper Document Library Properties - and see that the Edit Document Properties Form is blank no matter what File - I try to add I get this Error:
“The page you have selected does not contain a reference to the correct SharePoint list”
Therefore - since the EditForm.aspx page hasn't been changed in a while - what are some items to look at to remedy this odd problem.All,
I fixed this - by Opening the page in Designer - going to Insert -> SharePoint Controls -> List Form then selecting the proper library from the list - then selecting Edit Item Form. I then right mouse clicked the library and selected Properties
-> clicked List Properties then clicked the Supporting Files tab and under the Edit Document Forms Property - selected the item as such - clicked OK - saved everything -> refreshed the browser then all worked! -
Hi,
I am trying to build an aspx form dynamically but I have to user some HTML tags among controls. I am getting the error "Cannot get inner content of frm1 because the contents are not literal." in my
oForm.InnerHtml += "</fieldset>";
instruction. If I put it before adding the text and button controls to the form the error is gone. What am I doing wrong, if I want the controls to be inside a <fieldset> ... </fieldset> tag?
public void LoadForm()
HtmlForm oForm = new HtmlForm();
oForm.ID = "frm1";
oForm.Action = "";
oForm.InnerHtml += "<fieldset>";
oForm.InnerHtml += "<legend> ### TITALO ### </legend>";
HtmlInputText oText = new HtmlInputText();
oText.ID = "txt";
HtmlInputSubmit oSubmit = new HtmlInputSubmit();
oSubmit.ID = "btn";
oSubmit.Value = "submit";
oForm.Controls.Add(oText);
oForm.Controls.Add(oSubmit);
oForm.InnerHtml += "</fieldset>";
main.Controls.Add(oForm);
Thanks, regards.
BrunoAccording to articles (e.g.
http://forums.asp.net/t/939432.aspx?Panel+GroupingText), in order to include a
<fieldset>, you can use a Panel control having GroupingText
attribute. Therefore, instead of dealing with InnerHtml, try this:
var panel = new Panel { GroupingText = "### TITALO ###" };
panel.Controls.Add(oText);
panel.Controls.Add(oSubmit);
oForm.Controls.Add(panel);
main.Controls.Add(oForm);
Maybe you are looking for
-
Making Customer Pricing procedure mandatory in BP Role-CRM 5.0
Hi Our requirement is to make Customer Pricing procedure mandatory in BP Role "Sold to Party"-CRM 5.0. I have configured for the same in IMG Field Grouping. Now when a end user goes for BP creation & goes to Sales area maintenance then an error messa
-
I have been using two 1310 wireless bridges for about six months now. They have been working very well. However this morning they stoped connecting and one says that the Software status is disabled and the hardware status is down. in the configuratio
-
I want to Edit a small Video I took with my camera. I am using Windows 7 with Microsoft 10. Anyway the Video is in a file folder: Libraries, Videos. I open up the touch Smart and then open the videos. There are some Videos already in the files the
-
Business Practice for Credit Memos
We have been trying to signal out the best way forward with this issue. You advice is appreciated. Our current sales process entails that we Create a Sales Order, Invoice, and once we receive payments, we fulfill. When customers don't do a complete p
-
SDO_RELATE OR SDO_GEOM.RELATE
hii. i want to get an information that for example districts in a specified city.i try to use sdo_relate and sdo_geom.relate but i could not get true result. SELECT * FROM DISTRICTS WHERE SDO_RELATE(DISTRICTS .OGC_GEOMETRY,(SELECT OGC_GEOMETRY FROM C