Can I use apexrefresh to refresh a form region?
Hi- I have a tree region and below that I have a form region.
The tree has links that calls a javascript function when a node is clicked.
I want this JS function to set the ID for the form and then refresh just the form portion so the tree stays in the open, partial open, or whatever state it is in.
function set_program_id(pPROG_ID){
alert(pPROG_ID);
$s('P21_PROG_ID',pPROG_ID);
apex.jQuery('#PROG_DETAIL').trigger('apexrefresh');
I have PROG_DETAIL in the STATIC ID field of the region.
It doesn't work... is it possible or is this only for IR regions?
I doubt the refresh functionality supports forms and trees. I have been able to get only report regions refreshed that way. Someone from the development team can probably answer that conclusively.
<li>You can think of invoking an Ondemand Process, return back JSON or XML for all the form item values and then set the form parsing that result set.
<li>Another way would be to use the new jQuery dialog functionality in Apex 4 to show a nice dialog box over the tree. The content of the box can be from another page where you can put your form in. When you show display the dialog you can set the dependent items (I suppose P21_PROG_ID ) first.
<li>If its just 2 or 3 items, you can even render them in a report as multiple rows and then refresh them.
For example
SELECT 'Prog Name' LABEL. APEX_ITEM.TEXT(1,progname) from .. where PROG_ID = :P21_PROG_ID
UNION ALL
SELECT 'Prog Description' LABEL. APEX_ITEM.TEXTAREA(1,description) from .. where PROG_ID = :P21_PROG_IDYou can try around with JS to display the content in the way you want it.
Now your form can be refreshed using a Dynamic action.
Personally I would choose using the jQuery Dialog Box as its more clean,is easily maintainable and looks nice.
Similar Messages
-
Can I use Visual Basic to covert form user data from multiple .pdf files to a single .csv file? If so, how?
You can automate Acrobat using IAC (InterApplication Communications), as documented in the Acrobat SDK. Your program could loop through a collection of PDFs, load them in Acrobat, extract the form data from each, and generate a CSV file that contains the data.
Acrobat can also do this with its "Merge Data Files into Spreadsheet" function, but this is a manual process. -
Can i use java scripts in d2k forms and reports
Good day all,
Can i use the above said, if yes any assistance or eg.
thanks in advance.Hi,
The appropriate Forum for this question would be
Forms
(Forums Home » Oracle Technology Network (OTN) » Products » Developer Suite » Forms)
Thanks
Vineet -
How can we use mode "UsePDF" in Interactive form?
Hello everybody,
I want to know that how can i use the mode usePdf in Interactive form?
My scenario is:
I have pdf form saved locally with blank fields.
I save this file after requied values in all fields.
Now i want to import this pdf file in interactive form and needs to submit this form so all the data in this pdf file are submitted to the System.
How can i do this?
regards,
BhavikHi Bhavik,
you do not need to use the upload ui element, if your pdf-file which you want to upload resides in you web application project. In the following you can find Web Dynpro code snippets I use in one of my demos for displaying an uploaded pdf-file:
wdDoModifyView method of FormView:
//@@begin wdDoModifyView
try {
// get interactive form element by ID
InteractiveForm form = (InteractiveForm) view.getElement("Evaluation");
if (wdContext.currentContextElement().getCurrentMode().equals("usePDF")) {
form.setMode(WDInteractiveFormMode.USE_PDF);
catch (Exception e) {
e.printStackTrace();
//@@end
onPlugFromUploadView method of UploadView:
//@@begin onPlugFromUploadView(ServerEvent)
try {
// modify the context and set needed attributes
wdContext.currentContextElement().setCurrentMode( "usePDF" );
// extend the attribute "pdfSource" from the context to a modifiable binary type
IWDAttributeInfo attInfo = wdContext.currentContextElement().node().getNodeInfo().getAttribute("pdfSource");
ISimpleTypeModifiable type = attInfo.getModifiableSimpleType();
IWDModifiableBinaryType binaryType = (IWDModifiableBinaryType) type;
binaryType.setFileName("evaluationForm.pdf");
binaryType.setMimeType(WDWebResourceType.PDF);
// add the generated pdf to the context
wdContext.currentContextElement().setPdfSource( evaluationForm ); // byte[] evaluationForm
catch (Exception e) {
wdComponentAPI.getMessageManager().reportWarning(e.getLocalizedMessage());
//@@end
If you do not want to display the data before submitting the data, then you have to use the WDInteractiveFormHelper class for extracting the form data after upload in the context. This class is available since NetWeaver04 Support Package Stack (SPS) 10. The class com.sap.tc.webdynpro.clientserver.adobe.api.WDInteractiveFormHelper contains at the moment one helper function for PDF document. Here are the details:
Constructor Detail
public WDInteractiveFormHelper()
Method Detail
public static void transferPDFDataIntoContext(byte[] pdfSource, IWDNode targetNode)
Method transferPDFDataIntoContext extracts data from a PDF document and copies the values into the Web Dynpro Context. The xml structure of the document data is applied starting from the specified target node. Usually, this node should be the same context node to which InteractiveForm-UIELement property dataSource is bound during PDF generation.
Parameters:
pdfSource - PDF document as byte[]
targetNode - target IWDNode
Hope this will help you,
Regards, Carsten -
Which SDK can be used to "Create and manipulate forms"??
The ability to "Create and manipulate forms" is listed twice (and inconsistently) in this table:
http://www.adobe.com/devnet/pdf/library/
(row 11 and row 17).
One of the entries probably refers to AcroForms and the other to XFA forms?
Can someone please clarify?
TIA,
-RFHThanks, Bernd.
I have a follow-up question. When I use Acrobat interactively, I can execute these commands:
- "Recognize text using OCR"
followed by:
- "Run form field recognition"
The commands above will create an AcroForm, correct? Is there any way to create an XFA form in a similar fashion?
Last but not least: can the two commands above be performed under "remote control" (i.e., programmatically with the SDK API)?
TIA,
-RFH -
Can I use the Fedex shipment release form?
My iPad shipped via FedEx. But I'll be at work when it gets here. Can I use Fedex's shipment release authorization form? Will Apple and the Fedex driver respect it in this instance?
Terms and Conditions
I understand that Apple requires signatures acknowledging receipt of delivered goods. By signing the Shipment Release Authorization form, I hereby authorize Apple's carrier to leave my package at the address I have specified for delivery when placing my order. I understand that, in so doing, I assume the risk of any loss, theft, or destruction, and release Apple and its carriers from all liability that may result from, leaving the package where I have indicated on the Shipment Release Authorization form -
Can I use "Delete button" in intaractive form?
Hello Expert.
Please tell me the phenomenon of interactive form in Performance Management(MbO or OSA) .
I use "off line" solution.
Now our customer would like to delete button as delete some objectives who does not entry any comment.
Can I use this delete button in interactive form?
I cannot find the delete button in this form...
Best regards,
MakotoYou should try the LiveCycle Designer forum, but from my experience with Acrobat forms it's not possible. What you can do is either save the file using the desired file name and path (without user interaction), if the script runs from a trusted context, or you can prompt the user with the desired file-name for the file, but not enforce them to use it, nor populate it into the Save As dialog itself.
-
How can i use the nested table in form 6i
how can i use the nested table in the form 6i
( i.e i want to insert record into the nestred table field ).
bye siddharth singhNested tables are not supported in Forms 6i, only simple object tables.
-
How can I use a cfwindow with a form in it to update the main page?
This seems simple enough but I can't figure it out. My main
page calls a query to get a list of departments. I have put this
list in a table inside a cfdiv tag. I have an add department link
on my page. When the user clicks on this link, I want a popup
window (cfwindow) to display containing a form to add a department.
Then when the user submits the form, the form should disappear and
the main page should show the updated list of departments.
I can't get the form to close without getting an error
stating that there already is a window with that name and the new
data doesn't display unless I refresh my screen.
Here's my departments.cfm page:
<html>
<head>
</head>
<cfinvoke component="department"
method="list"
returnvariable="departments">
</cfinvoke>
<body>
<cfwindow name="deptWindow" title="Department Window"
draggable="true" resizable="false"
initshow="false" height="400" width="600" x=200 y=100>
<cfform action="processDepartment.cfm"
onsubmit="ColdFusion.Window.hide('deptWindow')">
Department:
<cfinput type="text" name="deptname">
<cfinput type="submit" name="submit">
</cfform>
</cfwindow>
<a href="#"
onClick="ColdFusion.Window.show('deptWindow')">Add
Department</a>
<cfdiv>
<table>
<tr>
<th>Department</th>
<th>Action</th>
</tr>
<cfoutput query="departments">
<tr>
<td>#deptname#</td>
<td><a href="##"
onClick="ColdFusion.Window.show('deptWindow')">Edit</a></td>
</tr>
</cfoutput>
</table>
</cfdiv>
</body>
</html>
Here's my department.cfc page:
<cfcomponent output="false">
<cfset THIS.dsn="cf8test">
<cffunction name="list" access="remote" output="false"
returntype="Query">
<cfquery name="departments" datasource="#THIS.dsn#">
SELECT department_id, deptname
FROM departments
ORDER by deptname
</cfquery>
<cfreturn departments />
</cffunction>
<cffunction name="add" access="public" output="false"
returntype="Boolean">
<cfargument name="deptname" required="true"
type="string">
<cfquery datasource="#THIS.dsn#">
INSERT INTO departments(deptname)
VALUES (<cfqueryparam value="#Trim(ARGUMENTS.deptname)#"
cfsqltype="cf_sql_varchar">)
</cfquery>
<cfreturn true />
</cffunction>
</cfcomponent>
And finally, here's my processDepartment.cfm page:
<!--- Form Field Validation --->
<cfparam name="FORM.deptname" type="string">
<cfif IsDefined("FORM.id")>
<cfset method="update">
<cfelse>
<cfset method="add">
</cfif>
<cfinvoke component="department"
method="#method#">
<cfif IsDefined("FORM.id")>
<cfinvokeargument name="id"
value="#FORM.id#">
</cfif>
<cfinvokeargument name="deptname"
value="#Trim(FORM.deptname)#">
</cfinvoke>
<!--- When done go back to the Departments listing --->
<cflocation url="/departments.cfm">Hi Jeff,
One way to do it is to write a JavaScript function that binds
to your CFC. The CFC should both insert the user values, and then
select all of the departments from the department table, and then
return the query set to the page. I wrote sort of a test page which
gets the state from the States table according to the state
abbreviation that the user types in from a CFWindow. The table
never gets updated, however, the result comes back from the CFC
through AJAX, then updates the main page. You can use this same
idea but you'll have to update your CFC a little bit. However, the
idea is the same.
Here's the code for my get State application. Especially
notice the following three lines of code in the JavaScript function
called getStates:
var d = new getStates2(); //this is the name of your CFC
d.setForm('form1'); //not sure if you need this, but I found
it somewhere
var stateName = d.getAllStates(); //the name of the function
inside your CFC
Anyway here's the code in full:
<style>
.stateClass {
font-family: arial;
font-weight: bold;
font-size: 12pt;
padding-top: 10px;
</style>
<cfajaxproxy cfc="getStates2">
<script language="javascript">
function enter_pressed(e){
var keycode;
if (window.event) keycode = window.event.keyCode;
else if (e) keycode = e.which;
else return false;
return (keycode == 13);
function getStates()
if(document.form1.theState.value == '') {
alert('Please make sure the textbox is not empty.');
return false;
var d = new getStates2();
d.setForm('form1');
var stateName = d.getAllStates();
ColdFusion.Window.hide('stateWin');
if (stateName == '')
document.getElementById('stateDiv').innerHTML = 'No such
state';
else
document.getElementById('stateDiv').innerHTML = 'The state
is ' + stateName;
</script>
<cfwindow name="stateWin" x="100" y="100" width="400"
height="200">
<form name="form1" method="post" onsubmit="return
false;">
<input name="theState" type="text" size="5"
onKeyPress="if(enter_pressed(event)){ getStates() }"
/>
<input type="button" value="get state"
onClick="getStates()">
</form>
</cfwindow>
<div id="stateDiv" class="stateClass">
</div>
<a
href="javascript:ColdFusion.Window.show('stateWin')">find a
state</a> -
Can I use data entered in PDF form's field(s) to auto-populate Save As file name?
Hello,
I want to automate, as much as possible, the "Save As" process by using some of the data that the user entered in the fillable PDF form.
For example, I want to include the user's First Name and Last Name that they entered in the form to be part of the saved file name.
First Name: Bob
Last Name: Smith
Therefore, when you select to Save As part of the new file name will already have <BobSmith><today's date>.PDF
Form was created using LiveCycle Designer 11
PDF version: 1.7, Adobe Extension Level 8 (Acrobat X)
Thanks for any information that you can share.
Regards,
RochYou should try the LiveCycle Designer forum, but from my experience with Acrobat forms it's not possible. What you can do is either save the file using the desired file name and path (without user interaction), if the script runs from a trusted context, or you can prompt the user with the desired file-name for the file, but not enforce them to use it, nor populate it into the Save As dialog itself.
-
Can i use global variable in web forms
guys can any one tell me if i can use global variables when i am
deplying the forms on the web,.....
thank you
vas
nullGlobal variables work in their perfection even when you deploy
your forms on the WEB.
null -
How can i use Oracle intermedia with Oracle forms 9i
Hi all,
I have a requirment from one of our client that they want to manage a large amount of Images,by seeing the documents about the oracle interMedia we got some idea to manage this images ,but the client is alredy having a software which is been developed by Oracle forms9i and we need to develope this using oracle forms9i can anyone give us an idea that how can we make use of InterMedia through Oracle forms9i ....
Thanks in advance....I am also trying to use interMedia objects with Oracle 9i forms. I've tried everything and I can't get it to work.
So far I have a solution that loads images using WebUtil into a blob field in Forms 9i, then in a backend stored procedure I move the blob to an interMedia object. Which works, but the problem with the image item in Oracle forms is that the image format cannot be change at runtime, so the images will always be what you set at design time.
Can someone out there please help.
Thanks.
Ray -
How can i use Oracle interMedia with Oracle forms Urgent
Hi all,
I have a requirment from one of our client that they want to manage a large amount of Images,by seeing the documents about the oracle interMedia we got some idea to manage this images ,but the client is alredy having a software which is been developed by Oracle forms9i and we need to develope this using oracle forms9i can anyone give us an idea that how can we make use of InterMedia through Oracle forms9i ....
Thanks in advance....I will ask, but it would be good to ask in the Oracle Forms forum as well. Many tools recognize the interMedia columns and automatically handle them since they now can say "Oh, this is an image column, I know how to handle this". I am not sure where forms is in this regard.
-
Can I use FormsCentral when creating a form from existing document?
Hi,
I am trying to make a template in Formscentral. I want to use a picture with our corporate design for forms. I can change that in a PDF, but if I want to use that in FormsCentral, The picture is not paper wide (as it should), but leaves white margins an header and footer. But if I try to make a form and chose 'from existing document' I seem to not be able to end up in FormsCentral. What am I doing wrong?
IsabellaHello George,
How do I upload a PDF to the FormsCentral service? Wil I see that form then in My Forms or in the the standard templates list? I want to be able to re-use a collored PDF with no fields in it. I use this one to make several forms which will all look the same in the background. -
How can i use static image in a form
I want to use a static image in the form I mean i need some images to show to end user and images but are static images, i was trying to copy paste image from from outside to forms but could not do it.
Please what is the way to add static image in the form.
regards
MazHi
Advice_: Pls note don't change the path of ur image cause this will hide displaying it into ur form.
Regards,
Amatu Allah.
Maybe you are looking for
-
Writing text file in while loop
Here is my question about writing text data to a file in a while loop...worded best I can. I have an Init case where I have the user choose a file path and name. I take the ref out and then I have data that is being written to the file. The loop will
-
Updatable view vs Bulk Collect
Hi friends. I need to know what is more fast.... 1. SELECT RO.NR_ORDEM BULK COLLECT INTO R FROM REP_ORD RO, REP_TRAB RT WHERE RO.NR_ORDEM = RT.NR_ORDEM ; FORALL I IN 1..R.COUNT DELETE REP_ORD WHERE NR_ORDEM = R(I); FORALL I IN 1..R.COUNT DELETE REP_T
-
why are u asking me to upgrade to Firefox 5 that does not support Windows 7 64 bit?
-
Help trying to set up Linksys wirelwess router
Bought a linksys router, went through with linksys to setup then tried wireless connection and wouldn't work. It's saying connection is active but not able to connection to the internet? Linksys is saying to call Apple to configure....does anyone kno
-
Partial Duplicate iTunes Library onto MacBook Pro for portability?
As many of you, my iTunes library is growing leaps and bounds and as such I've have it on an external 1 TB drive. It is connected to my MacBook Pro while at home and it is the master to which I sync my iPhone and TV. Now when I want to go portable w