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
Similar Messages
-
Accessing Form context fields in javascript in Adobe forms
Hi,
I want to hide some elements in the Adobe form with respect to the value of a Form context field.
If this field is mapped to an element in the Form layout then we can access it using data.<field>.rawValue, but this field is not mapped to any element on the layout.
Please help me if anyone knows it.
Regards,
JashuaThe coding you are showing is FormCalc used by LiveCycle Designer.
This is the forum for Acrobat Acrobat forms, there is a separate series of forums for LiveCycle Designer. If you are using LiveCycle Designer please post in the appropriate LiveCycle forum. -
Accessing Meta-Data with JavaScript
Hi,
In U3D one can add meta-information to the file.
Could anyone access this mata-information with JavaScript in Acrobat?
I could not find any documentation in the API or references on Internet, so far...
Thank you for every hint!
FelixFelix,<br /> Here's a hunk of code which will cycle through all the nodes, showing they're metadata. If the MD in the header is available, it will also be shown. Otherwise, no access to header info!<br /><br />//=========================================<br />console.println("scene.nodes.count = " + scene.nodes.count);<br />console.println ("----------------------------");<br />for (i=0; i<scene.nodes.count; i++)<br />{<br /> objNode = scene.nodes.getByIndex(i);<br /><br /> if (objNode == undefined)<br /> {<br /> console.println (" *** node = undefined ***\n\n");<br /> }<br /> else<br /> {<br /> console.println ("Node [" + i + "] metadataString = " + objNode.metadataString );<br /> }<br />}<br />//=========================================
-
The question says it all:
What Are The Minimum Permissions In Order An User To Be Able To Access User Profile Data With JavaScript And REST API.?
In the User Profile -> Permissions there is only the option for "Full Control".Hi Nikolay,
Thanks for posting your issue, you need to set permissions on User Profiles = Read. Kindly find the below mentioned URLs to get the code and more details on this.
http://www.vrdmn.com/2013/02/sharepoint-2013-working-with-user.html
http://www.vrdmn.com/2013/07/sharepoint-2013-get-userprofile.html
http://sharepoint.stackexchange.com/questions/61714/sharepoint-2013-call-the-rest-api-from-sharepoint-hosted-app
http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2013/04/09/how-to-query-sharepoint-2013-using-rest-and-javascript.aspx
I hope this is helpful to you, mark it as Helpful.
If this works, Please mark it as Answered.
Regards,
Dharmendra Singh (MCPD-EA | MCTS)
Blog : http://sharepoint-community.net/profile/DharmendraSingh -
Problems Displaying data from RFC on Adobe Forms
Hi,
I have some Problems with creating an Adobe Form and hope, someone can help me or give me some hinds to some tutorials, which can help me.
I'm developing an webdynpro-application which get data from a R/3 via RFC-Call.
Context-Binding and so on is done and works. I created also an interactive form and can display some datas on it.
Here my questions:
I have an field 'unit' which shoulb be displayed on several positions onto the form. My problem is, i can display it only once. If i copy the field, there is no output in it. What can i do, to solve the problem?
From the RFC i get a table with several rows of data, i want to display on the form.
With drag&drop i can place the fields onto the form but they are displayed only once. I want one line for every row from the table.
What do i have to do? Are there tutorials which show the steps?
When I am not using a form, i can display the data from RFC in a table with no problems (i create a table ui and choose create binding from context menue). Are the nescessary steps for displaying the data on an interactive form the same.
I read something about creating a dynamic form design. Do i have to create it? What are the steps i have to do.
Many questions, but i hope that someone can give me some helpful hints.
Many thanks
Mathias LangeHi Mathias,
If I caught you correctly, you want to display data in Adobe forms in form of tabel, right?
So, follow the steps:
1. Insert one sub form on your adobe form.
2. Set its type as "flow content" in object->subform property.
3. Set flow direction as "Table".
4. Insert another subform inside this subform.
5. set its type as "flow content" and flow direction as "Table row".
6. Now, choose binding tab, and there check "repeat subform for each Data item check box" and specify min. count for your rows.
7. Now, insert your column fields inside this sub form once.
8. Format its look and feel as you want.
When you run this application, it will show you multiple data as table on Adobe form.
Regards,
Bhavik -
Hi All,
How do we write Javascript in adobe forms to display a text at the end of the master page. this master page count varies based on the number of records in the table. So suppose at the last page I want to display a text. How do we achieve that??
Thanks,
KomalMaster Page will be displayed on every normal page .
So the alternate solution is make your pages as flow layout. Arrange the things properly.
After the table or at the end of all the elements you can make a text field for the number of records.
So as soon as the table is filled the elements are scrolled down and automatically at the end of the page the text field with number of records will be shown.
Thanks,
Sumeet -
I have an external hard drive from my time capsule that stopped working on me. I am attempting to access the data with a hard drive reader on my MAC. I am able to see the drive in disk utility and under system info USB. But I am unable to access the data and it does not show on the desktop when connected.
Ok if disk utility was able to verify the drive I doubt there is any problem.. are you trying to open a TM backup??
You need to mount the sparsebundle then check the actual info inside the bundle.
Don't use disk warrior.. if the disk has verified then unless you deliberately deleted files there is nothing that is going to do.
Pondini has a lot of stuff about getting access to the sparsebundle.
http://pondini.org/TM/17.html
But if you have copied info to the TC that is now gone.. and the disk is ok.. I am not sure.. the TC will not have deleted the files itself. -
Update data of pdf (offline adobe forms) to sap system By Inbound E-mail
Hello,
I am trying to update data in PDF (offline adobe forms) to Sap system by Inbound E-mail. Kindly give some suggestions for scenario to do this task.Hi,
There ia a good information for your requirement.
Please check the below link.
http://www.sdn.sap.com/irj/scn/events?rid=/library/uuid/c0c139d3-3eae-2910-01a1-d253f2587b0e&overridelayout=true
Thanks.
Uma -
Calling and manipulating data on an Interactive Adobe form from ABAP report
Dear All,
Can you please tell me how to call an interactive adobe from from a custom adobe form?
If so how can we pass and receive data between the interactive adobe form and the abap report program?
Thank you.
Regards,
Prosenjit.Hi,
It is possible to call an Interactive Adobe form from ABAP report and pass data into the form. If you search the forum, you will get many threads explaining the process. Let me know if you have any specific questions on this.
Regards,
Sanoosh -
Accessing shape data with actionscript
Hello.
I'm wondering, is it possible to access shape data with
actionscript. I want to draw simple lines with "line tool"
somewhere in my movieclip and then to access information about my
lines with actionscript to get startX, startY and endX endY of
every line. Is it possible?
thank you.I do not believe so. Once you draw a primitive on the stage
with the api I believe that is all you get. If you create a sprite
object and then draw into that you might be able to get the sprite
properties. You may also be able to do the same thing with a
container movieclip. I don't think just drawing a line with the api
on the stage will give you anything the reference. -
Events with Scrpts and JavaScript in ADOBE forms
Hello All,
On an Adobe form I have field for sub totals. I am trying to choose 'Events with Scripts' on the SHOW pull down values and choose JavaScript in the language. I was able to do this some time ago but now, I am able to choose Events with Scripts but not being able to choose JavaScript for language.
I do not have much exp. with Adobe or JavaScript but I checked whatever I could think of but could not figure out. Any body ran into this issue before? Any ideas?
Please post and Thank you ...By trial and error, what I did is, chose 'Calculate' in the Show menu then chose JavaScript in the Language pull down menu. Then added my JavaScript code. Then went back and change 'Calculate' in the Show menu to Events with Scripts. Saved and executed it . It worked.
-
How to extract data from an interactive adobe form and update SAP database
Hi ,
I want to create an Interactive Adobe Form with two text fields and a submit button.On click of submit data entered in the text fields should be stored in a ZTable.
Please let me know the procedure for doing this in ABAP.
Thanks,
Prasuna.Hi ,
pls have a look at the link below...
[http://www.adobe.com/devnet/livecycle/articles/lc_designer_schema_tip.pdf]
if u r using abap web dynpro application for calling the adobe form than on the CLICK Action of the button give the code :
zdept is the interface name ..
method ONACTIONCLICK .
data:
Node_Adobe type ref to If_Wd_Context_Node,
Node_Zdept type ref to If_Wd_Context_Node,
Elem_Zdept type ref to If_Wd_Context_Element,
Stru_Zdept type If_Main_View=>Element_Zdept .
data wa_zdept type zdept.
* navigate from <CONTEXT> to <ADOBE> via lead selection
Node_Adobe = wd_Context->get_Child_Node( Name = IF_MAIN_VIEW=>wdctx_Adobe ).
* navigate from <ADOBE> to <ZDEPT> via lead selection
Node_Zdept = Node_Adobe->get_Child_Node( Name = IF_MAIN_VIEW=>wdctx_Zdept ).
* get element via lead selection
Elem_Zdept = Node_Zdept->get_Element( ).
* get all declared attributes
Elem_Zdept->get_Static_Attributes(
importing
Static_Attributes = Stru_Zdept ).
wa_zdept-DEPTNO = Stru_Zdept-deptno.
wa_zdept-DNAME = Stru_Zdept-dname.
wa_zdept-LOC = Stru_Zdept-loc.
insert into zdept values wa_zdept.
endmethod.
Hope this helps !!!
best of luck !!
Regards
Ravi -
Data node mapped to Adobe Form empty - Web Dynpro ABAP
Hi,
I've created a web dynpro component in ABAP. One of the view contains an interactive Adobe form.
Form properties : Data source and pdf source are mapped
Enabled checked
Submit action mapped to a method. This method reads the node mapped to the form.
Form Layout: Used ZCI Layout and Inserted web dynpro script (XML interface)
Dragged attributes from data view to create text fields.
Submit button used from Web dynpro native group
I could not read data from the form.
When I submit the form, data is not captured in the context.
I have used the same context for view and could save the data from the view. But from the adobe form, I cannot read the data.
Is there anything I missed. I have been on this since 2 days with no solution. I dont see any mistake but the form doesnt work.
Version: Adobe Designer : 8.1 (from market place)
SAP Netweaver 2004s SP18
Any help on this is appreciated.
P.S. Used all possible help from SDN existing posts and SAP notes.
Thanks in advance,
SrinivasHi Srinivas,
place a button on webdynpro view it self then try.
make sure your form is working in interactive mode.
else keep this conde in modifyview method.
method WDDOMODIFYVIEW.
data: LR_INTERACTIVE_FORM type ref to CL_WD_INTERACTIVE_FORM,
LR_METHOD_HANDLER type ref to IF_WD_IACTIVE_FORM_METHOD_HNDL.
check first_time = abap_true.
LR_INTERACTIVE_FORM ?= VIEW->GET_ELEMENT(u2018<<ID_OF_YOUR_UIELEMENT>>u2019).
LR_METHOD_HANDLER ?= LR_INTERACTIVE_FORM->_METHOD_HANDLER.
LR_METHOD_HANDLER->SET_LEGACY_EDITING_ENABLED( abap_true ).
endmethod.
or try these links
For More Information look at the link below.
http://help.sap.com/saphelp_nw70/helpdata/en/2c/241a427ff6db2ce10000000a1550b0/frameset.htm
Please look into SAP Notes: 1229392
You can also look at the elearning below:
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/media/uuid/c766e918-0b01-0010-99b1-c2b78cd059b3
Regards,
Mahesh -
Problem with table in Adobe Form in Web Dynpro JAVA??
Hello all,
I have an issue with the table displaying all the node values in the Adove Form. Right now it displays only the first element of the Node even if there are multiple entries.
Not sure what is going wrong here.
How is the table created in a interactive form? Any help is appreciated.
Thank you, JohnSiva,
I referred to the website, but still having issues with generating tables in Adobe Form. I can get all the table rows in the adove form, but the pdf doee not add new pages to display all the table rows. It just createa one page with the table inside it, display few of the rows and truncates rest of the table data.
Here is the heirarchy of the page with the properties set
Master Pages ---
||--> Page 1
||--> content area
||--> subfrom (properties:: Content - Flowed / Flow direction - top to bottom...pagination tab is greayed out completly)
||--> Table
||--> HeaderRows (Object: Row - Type: Header Row)
||--> Row1 (Object Tab/Binding: Repeat Row for each data item - checked)
Can't make it wor, not sure what's wrong here
I am using NDS 7.0 SP18 and Adobe LiveCycle 8.0. Does that could be a problem.
Appreciate your help
John -
Formatting Dates with Javascript
Hi all. I'm tryign to find the solution on the web, but have
not had much
success yet.
I"m working on a customized button my my HTMLArea script that
puts a WYSIWYG
component on my form fields to insert the date.
My code is here:
editor.insertHTML((new Date()).toString());
Which outputs this:
Fri Nov 17 2006 10:08:35 GMT-0600 (Central Standard Time)
What I'm wanting to do is to output
Friday, November 17, 2006 with no timestamp, and no reports
of GMT/CST.
Any suggestions on where I can go to look? I've been at the
W3C, but I did
not see any way to format my string.
I've tried a lot of variations in trying to format the date
witha string,
but have not had any success.
This was my last script, which erred:
var d = new Date();
d.formatDate("D, M j");
d.toString();
editor.insertHTML(d);
TIA,
Jon Parkhurst
PriivaWeb
http://priiva.net.Thanks Mick, Reviewing now.
"Mick White" <[email protected]> wrote in
message
news:ejl3t8$sho$[email protected]..
> crash wrote:
>> Hi all. I'm tryign to find the solution on the web,
but have not had
>> much success yet.
>>
>> I"m working on a customized button my my HTMLArea
script that puts a
>> WYSIWYG component on my form fields to insert the
date.
>>
>> My code is here:
>> editor.insertHTML((new Date()).toString());
>>
>> Which outputs this:
>> Fri Nov 17 2006 10:08:35 GMT-0600 (Central Standard
Time)
>>
>> What I'm wanting to do is to output
>> Friday, November 17, 2006 with no timestamp, and no
reports of GMT/CST.
>
>
http://www.mickweb.com/javascript/dates/customDate.html
>
> editor.insertHTML(customDateString());
>
>
http://www.mickweb.com/javascript/dates/date.js
>
> function customDateString() {
> var now = new
Date(),H=now.getHours(),M=now.getMinutes();
> M=M<10?"0"+M:M;
> d =
>
["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]
> [now.getDay()]+", ";
> d+=
> ["January","February","March","April","May","June",
>
"July","August","September","October","November","December"]
> [now.getMonth()]+" ";
> d+=now.getDate()+" "+now.getFullYear();
> d+=", "+H%12+":"+M+["AM","PM"][Number(H>11)||H==0];
> return d
> }
>
> Mick
>
>>
>> Any suggestions on where I can go to look? I've been
at the W3C, but I
>> did not see any way to format my string.
>> I've tried a lot of variations in trying to format
the date witha
>> string, but have not had any success.
>> This was my last script, which erred:
>>
>> var d = new Date();
>> d.formatDate("D, M j");
>> d.toString();
>>
>> editor.insertHTML(d);
Maybe you are looking for
-
Starting Failed Data Migration Over Again With New Macbook Pro
I just purchased a new Macbook Pro. Upon transferring files from an old Macbook via a backup and Time machine, the startup screen on the new Macbook Pro now just shows white and a spinning disk. I can't even get a normal desktop. 1.New Macbook Pros
-
Candy crush says in app purchase complete but not downloaded
trying to purchase candy crush in app purchase and it says payment complete but not downloaded.when i click ok to download nothing happens.
-
Long List Of CFLOGIN Roles and Performance
I have a very long list of Roles for the "roles" attribute of cflogin (around 60). Is this going to be a severe performance problem? Boybles
-
Why does Dreamweaver crash all the time, hang all the time and work so slow.
Why why why why why can't Adobe make a simple program that works. I hate Dreamweaver. I'm switching to Transmit. At least it works. Dreamweaver is garbage. Adobe seems to think that if they prettify a program with new splash screens and tutorials tha
-
How to be Oracle Certified trainer
Hi guys, I am an oracle certified professional (OCP on 10g) and I wanted to be an oracle certified trainer, and if possible I want to start a business to be oracle agent for training. I am in Ethiopia, East Africa. and there already is one agent. so