Button for next recording in the database
Hello,
I currently testing Adobe LiveCycle to create a PDF form with data link to a database (Access).
The goal of my form is for the manager of each of our site to write variable about the paycheck of each employe. So first I create my AccessDatabase with a simple structure :
N : Auto Number
Matricule : Employe ID
Nom : Name
Prenom : First Name
Service : Service (Accounting...)
HeureMensuelBase : Contract hour information for the mouth
HeureSemBase : Contract hour information for the week
Mois : Mouth
Annee : Year
NbrHeureMensuelW : Write the number of hour the employe work this mouth
NbrHeureSupp25pc : Extra hour paid 25% more
NbrHeureSupp50pc : Extra hour paid 50% more
NbrHeureSupp100pc : Extra hour paid 100% more
NomPrime : Name of a special gratification
MontantPrime : Amount of a special gratification
So after, I create my ODBC connexion and insite AdobeLiveCycle, Data View, Create a connexion > Next > ODBC String connexion > SQL Request > SELECT * FROM Table_Access; > Next > Finish. Great I retreive all my fields. If I preview the PDF I can correctly see the first record of my database.
My goal is to create two differents buttons to navigate inside :
NEXT with the follow code :
formulaire1.#subform[0].Next::click - (JavaScript, client)
xfa.sourceSet.DataConnection.next();
PREV with the follow code :
formulaire1.#subform[0].Prev::click - (JavaScript, client)
xfa.sourceSet.DataConnection.previous();
If i try to preview it, unfortunatly no button works.
I follow this video : http://www.youtube.com/watch?v=C56_Cz-aE0c
I see the Adobe FAQ too : http://help.adobe.com/en_US/livecycle/11.0/DesignerHelp/WS107c29ade9134a2c-1f4d3e3c12a7df3 f73e-8000.2.html
Could help me ? Adobe Support don't want help me because I use a trial version for the moment (logical because my CTO wan't valide LiveCycle do the job before paid for it). Sorry for my english it's not my mother tongue.
I'm not alone in the same situation : http://forums.adobe.com/thread/793214
Please support help us
Similar Messages
-
How to get first 10 records from the database using JSP
i want ot get first 10 records from the database and then after clicking the next button in the page,it must show the next precceding 10 records from the database.i am getting the first 10 records .but how to post to the same page to get another preceeding 10 record.
Search the forums - this has been asked a lot. I usually recommend experimenting with tops and order bys until you're satisfied.
Kind regards,
Levi -
Fetching 3 laks records from the database
Hi All,
I have a requirement that if we are fetchin 3 lakks records from the database, can we fetch the records in a single span of time ,if yes then how?
If no, then we have to fetch the recods multiple times but since for the first time it is fetching 1 lakh records and for the next time how the bpel engine know that it has to fetch 1000001 record.
Can anybody came this type of scenario. Please guide me on this.
Regards,
ChThere are some options given here @ http://myexperienceswithsoa.blogspot.com/2010/06/db-adapter-polling-tricks.html
Check them out.
But if you reading so much of data at once, you better have the necessary infrastructure to handle the load like memory, jvm tuning, etc ...
If there is a limitation, you will need to assess your polling record count to be may 10K or so to strike a balance on the performance.
Hope this helps.
Thanks,
Patrick -
Error while saving the records in the database
Hi,
I am running into a wierd error.
I have built a new page which contains the information about the employees. Some of the fields are updatable fields. The page shows the details of the person who logs into the page.
I am not using EO in this page. The data is queried from the database from VO and displayed in the page and when the records are updated, they are saved in the databased using pl/sql procedure which is
being called from AM. So i am basically not using VO to save the records in the database.
The error which i am getting is,
If 2 users are trying to update the page at the same time, user A's details are updated in user B's page.
This is really causing the issue. Any help is greatly appreciated.
Thanks in advance.
PKI have posted the code used along with the dialog page. Please review.
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"Pavan, Start1",OAFwkConstants.STATEMENT);
if (pageContext.getParameter("XYZBack")!=null)
pageContext.setForwardURL("OA.jsp?OAFunc=OAHOMEPAGE"// OAWebBeanConstants.RETURN_TO_MENU_URL also tryed this , same error
,null
,OAWebBeanConstants.KEEP_MENU_CONTEXT
,null //not needed as we are retaining menu context
,null // no parameters are needed,true //retain AM,OAWebBeanConstants.ADD_BREAD_CRUMB_YES
,true
,null
,OAWebBeanConstants.IGNORE_MESSAGES);
if(pageContext.getParameter("XYZUpdate") !=null)//The fields and their values are loaded as soon as the update button is clicked. We do this before calling the oadialog page so that the values are not lost
OAViewObject EmpDetailsVO3 = (OAViewObject)OAAppl.findViewObject("XYZPersInfoVO");
OARow EmpDetailsRow3 = (OARow)EmpDetailsVO3.first(); //Bringing the control over to the first row which is nothing but the displayed row.
if(EmpDetailsRow3 !=null)
s_workphone = EmpDetailsRow3.getAttribute("WorkPhone").toString();
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"workphone is: "+s_workphone,OAFwkConstants.STATEMENT);
s_fax = EmpDetailsRow3.getAttribute("WorkFax").toString();
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"Fax is: "+s_fax,OAFwkConstants.STATEMENT);
s_building = EmpDetailsRow3.getAttribute("Building").toString();
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"Building is: "+s_building,OAFwkConstants.STATEMENT);
s_room = EmpDetailsRow3.getAttribute("Room").toString();
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"Room is: "+s_room,OAFwkConstants.STATEMENT);
s_box = EmpDetailsRow3.getAttribute("Box").toString();
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"Box is: "+s_box,OAFwkConstants.STATEMENT);
s_preferedname = EmpDetailsRow3.getAttribute("KnownAs").toString();
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"Preferred name is: "+s_preferedname,OAFwkConstants.STATEMENT);
OAException OAExcep1 = new OAException("PER","XYZ_UPDATE_DETAILS");
OAException OAExcep2 = new OAException("PER","XYZ_UPDATE_MESSAGE");
OADialogPage OADialogPG1 = new OADialogPage(OAException.WARNING,OAExcep1,OAExcep2,
OADialogPG1.setOkButtonToPost(true);
OADialogPG1.setNoButtonToPost(true);
OADialogPG1.setOkButtonLabel("Yes");
OADialogPG1.setNoButtonLabel("No");
OADialogPG1.setOkButtonItemName("DoOk");
OADialogPG1.setNoButtonItemName("DoNo");
OADialogPG1.setPostToCallingPage(true);
pageContext.releaseRootApplicationModule();
pageContext.redirectToDialogPage(OADialogPG1);
else if(pageContext.getParameter("DoOk") != null)
OAApplicationModule EmpDetailsAM = pageContext.getApplicationModule(webBean);
Class[] paramtypes = {String.class, String.class, String.class, String.class,String.class,String.class,String.class};
Serializable[] params = {s_personid,s_workphone,s_fax,s_building,s_room,s_box,s_preferedname};
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"personid is :"+s_personid,OAFwkConstants.STATEMENT);
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"workphone is :"+s_workphone,OAFwkConstants.STATEMENT);
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"workfax is :"+s_fax,OAFwkConstants.STATEMENT);
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"building is :"+s_building,OAFwkConstants.STATEMENT);
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"room is :"+s_room,OAFwkConstants.STATEMENT);
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"preferredname is :"+s_preferedname,OAFwkConstants.STATEMENT);
pageContext.releaseRootApplicationModule();
OAAppl.invokeMethod("TransactionCommit",params,paramtypes);
OAAppl.invokeMethod("initDetails");
throw new OAException("The Building and Phone Information have been saved successfully"
,OAException.INFORMATION);
thank you -
How to fetch records from the database into a combo box?
Hi:
I´m really new with ABLBPM and I´m trying to fetch records from the database to display them into a combo box as valid values for a presentation but I´m using a dynamic method with this code:
<em>for each row in SELECT campo1, campo2 from TABLE</em>
<em>do</em>
<em>solicitudes[] = [row.campo1, row.campo2]</em>
<em>end</em>
<em>return solicitudes
</em>And the debugger says that SQL instructions can be used only in fuctions and procedures that are executed on the server.
Do you know another way to do it?
P.D. Sorry for my terrible english
GreetingsHi Steve,
Thank you, your idea is perfect, but when I try to run the screenflow where the combo should be filled I get this error:
fuego.lang.ComponentExecutionException: No se ha podido ejecutar correctamente la tarea.
Motivo: 'java.lang.NullPointerException'.
at fuego.web.execution.InteractiveExecution.setExecutionError(InteractiveExecution.java:307)
at fuego.web.execution.InteractiveExecution.process(InteractiveExecution.java:166)
at fuego.web.execution.impl.WebInteractiveExecution.process(WebInteractiveExecution.java:54)
at fuego.webdebugger.servlet.DebuggerServlet.redirect(DebuggerServlet.java:136)
at fuego.webdebugger.servlet.DebuggerServlet.doPost(DebuggerServlet.java:85)
at fuego.webdebugger.servlet.DebuggerServlet.doGet(DebuggerServlet.java:66)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at fuego.web.execution.servlet.ServletExternalContext.forwardInternal(ServletExternalContext.java:197)
at fuego.web.execution.servlet.ServletExternalContext.processAction(ServletExternalContext.java:110)
at fuego.webdebugger.servlet.DebuggerExecution.dispatchComponentExecution(DebuggerExecution.java:64)
at fuego.web.execution.InteractiveExecution.invokePrepare(InteractiveExecution.java:351)
at fuego.web.execution.InteractiveExecution.process(InteractiveExecution.java:192)
at fuego.web.execution.impl.WebInteractiveExecution.process(WebInteractiveExecution.java:54)
at fuego.web.execution.InteractiveExecution.process(InteractiveExecution.java:223)
at fuego.webdebugger.servlet.DebuggerServlet.doDebug(DebuggerServlet.java:148)
at fuego.webdebugger.servlet.DebuggerServlet.doPost(DebuggerServlet.java:82)
at fuego.webdebugger.servlet.DebuggerServlet.doGet(DebuggerServlet.java:66)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
Any ideas??
Thanks and greetings -
Shell Script for Startup and Shutdown the database
Hi,
i want Shell Script for Startup and Shutdown the database in Solaries.
could any one can hep me where i can get this script. or send to me to [email protected]
Thanks & Regards,
Gangi reddySHUTDOWN
SHUTDOWN ABORT]
Shuts down a currently running Oracle instance, optionally closing and dismounting a database.
Terms
Refer to the following list for a description of each term or clause:
ABORT
Proceeds with the fastest possible shutdown of the database without waiting for calls to complete or users to disconnect.
Uncommitted transactions are not rolled back. Client SQL statements currently being processed are terminated. All users currently connected to the database are implicitly disconnected and the next database startup will require instance recovery.
You must use this option if a background process terminates abnormally.
IMMEDIATE
Does not wait for current calls to complete or users to disconnect from the database.
Further connects are prohibited. The database is closed and dismounted. The instance is shutdown and no instance recovery is required on the next database startup.
NORMAL
NORMAL is the default option which waits for users to disconnect from the database.
Further connects are prohibited. The database is closed and dismounted. The instance is shutdown and no instance recovery is required on the next database startup.
TRANSACTIONAL [LOCAL]
Performs a planned shutdown of an instance while allowing active transactions to complete first. It prevents clients from losing work without requiring all users to log off.
No client can start a new transaction on this instance. Attempting to start a new transaction results in disconnection. After completion of all transactions, any client still connected to the instance is disconnected. Now the instance shuts down just as it would if a SHUTDOWN IMMEDIATE statement was submitted. The next startup of the database will not require any instance recovery procedures.
The LOCAL mode specifies a transactional shutdown on the local instance only, so that it only waits on local transactions to complete, not all transactions. This is useful, for example, for scheduled outage maintenance.
Usage
SHUTDOWN with no arguments is equivalent to SHUTDOWN NORMAL.
You must be connected to a database as SYSOPER, or SYSDBA. You cannot connect via a multi-threaded server. For more information about connecting to a database, see the CONNECT command earlier in this chapter.
http://download-west.oracle.com/docs/cd/B10501_01/server.920/a90842/ch13.htm#1013607
Joel Pérez -
Problem with displaying records from the database in a table ui element
Hi,
Iam creating an application which retrieves data from an oracle database. Iam able to connect to the database and retrieve the data in a result set. Then I try to set these values in a context node as follows,
while (resultSet.next()) {
String name = result.getString(1);
String EmpId = result.getString(2);
IEmpNode node = wdContext.nodeEmp();
IEmpElement el = node.createEmpElement();
el.setName(name);
el.setEmpId(EmpId);
node.addElement(el);
where the context structure is emp(node)
---name(attribute)
---empId(attribute)
Then I have bound the node emp to a table ui element.If I try to deploy this it comes up with Internal Server error.
But if try this way, without creating a node, only with attributes name and empId,
wdContext.currentContextElement.setName(name);
wdContext.currentContextElement.setEmpId(EmpId);
and binding the attributes to inputfields in the view, Iam able to see the last record in the database table.
So where am I going wrong while using the table ui element?
Regards,
RachelHi
Try this
//Create the node in outer of while loop and bind to Table UIElement
IEmpNode node = wdContext.nodeEmp();
while (resultSet.next()) {
String name = result.getString(1);
String EmpId = result.getString(2);
IEmpElement el = wdContext.createEmpElement();
el.setName(name);
el.setEmpId(EmpId);
node.addElement(el);
Kind Regards
Mukesh -
Oracle Forms returns the first record in the database when performing query
Once in a while when we query for a record on a form, say by first name Tom, then it returns the first record in the database. Other times it return the Tom's record. It only happens once in a while and if you close the form and reopen it and requery for Tom, then it brings Tom's record.
Does anyone know the issue what could be happening. It just happens every now and then that it's hard to reproduce.
ORacle Forms 10GR2
ORacle Application Server 10.1.3
thanksthen it returns the first record in the databaseI'm not sure if i understand you correctly. Do you mean forms ignores the searc-condition you entered? I would check SYSTEM.LAST_QUERY at the moment this happens to check if the condition gets somehow lost.
-
Air - Sqlite with Adobe Air insert data in memory, but do not record on the database file
I have the code:
var statement:SQLStatement = new SQLStatement();
statement.addEventListener(SQLEvent.RESULT, insertResult);
statement.addEventListener(SQLErrorEvent.ERROR, insertError);
statement.sqlConnection = sqlConnection;
statement.text = "insert into table values('"+TINome.text+"','"+TISerial.text+"') ";
statement.execute();
This run without error and the data is inserted (i dont know where), but when i see into database with firefox sqlite manager, the database is empty! But the Air continue run for a time like the data was recorded on the database file. I dont know what is happen with it.
Help please!Toplink In Memory was developed by our project to solve this problem. It allows us to run our test either in memory or against the database.
In memory, we basically stub out the database. This allows us to speed up our tests about 75x (In memory we run 7600 tests in 200 secs, it takes about 5 hours against the database). However, it throws away things like transactions, so you can't test things like rollback.
In database mode, it just uses toplink, Another benefit of it though is that it watches all the objects created allowing an automatic cleanup of created test objects - keeping your database clean and preventing test interactions.
We used HSQL running in memory previously, it worked fine. However, we needed to write scripts to translate our Oracle SQL into HSQL. Also, we had to override things like the data function in HSQL, and a few of our queries behaved unexpectedly in HSQL. We later abandoned it, as it became a lot of maintenance. It was about 10x faster than running against Oracle.
Interestingly, we install oracle on all our developers machines too, tests run way faster locally, and developers feel way more comfortable experimenting with a local instance than with a shared instance.
You can find the toplink in memory stuff at:
http://toplink-in-mem.sourceforge.net/
I provide all support for it. Doc is sketchy but I'm happy to guide you through stuff and help out where I can with it.
- ted -
Does every rs.next() command requery the database?
Submitted for your consideration...
Connection conn = DriverManager.getConnection("jdbc:mysql://localhost/sweatshop?user=foobar&password=boofar");
Statement stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery("SELECT years_worked FROM smurf_slaves");
while(rs.next) { whatever... }
Does the rs.next() statement query the database with each iteration of the while loop or are all the results of a query dumped into memory in one fell swoop?
Thank you.hi.,
when we call ResultSet.executeQuery("") it retrieves all the results and dumped into memory in one shot.
after then by using while loop retriving data from ResultSet object.
also we may give size to ResultSet object by using getFetchSize(_)* method.
see the method: http://java.sun.com/j2se/1.4.2/docs/api/java/sql/ResultSet.html#getFetchSize() -
Insert multiple rows of records into the database
The codes below allow me to insert a row of record into the database. How would I changed these to insert multiple rows at once? Please help!
String sql = "INSERT INTO EMPLOYEES" +
"(First_Name, Last_Name, Title, Phone) " +
" VALUES " +
PreparedStatement statement = conn.prepareStatement(sql);
statement.setObject (1, First_Name);
statement.setObject (2, Last_Name);
statement.setObject (3, Title);
statement.setObject (4, Phone);
boolean returnValue = statement.execute();Hi mystiqueX,
As wmolosho has suggested in his answer to this very same question that you also posted to the JavaServer Pages forum, you can create a batch of inserts and perform them using the "executeBatch()" method. I will use Craig's sample code to demonstrate:
(Note that this code is untested!)
conn.setAutoCommit(false);
PreparedStatement statement = conn.prepareStatement(sql);
// assume you have an array of objects here
for (int i = 0; i < data.length; i++) {
statement.setString(1, data<i>.getFirstName());
statement.setString(2, data<i>.getLastName());
statement.setString(3, data<i>.getTitle());
statement.setString(4, data<i>.getPhone());
statement.addBatch();
statement.executeBatch();
conn.commit();If you are not familiar with it, allow me to suggest looking at the Making Batch Updates lesson on the Java Tutorial.
Hope it helps.
Good Luck,
Avi. -
Why should I recompile report for any changes in the database ?
Hi All
I call a report (.rep) from a form using RUN_REPORT_OBJECT, and everything is OK
For any change in the database, for example :
1- Export Dump file for the schema.
2- Drop the schema
3- Re-create the schema again
4-Import the taken dump to the schema
When i call the report again, the report doesn't run. If i recompile the report again it will work.
I read too much posts about this issue, most of them are taLking about the command line parameter RECURSIVE_LOAD=NO ,
v_url :=' COMPANY_NO='||:global.company_no|| ' RECURSIVE_LOAD=NO';
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,v_url);
But , Still the problem not solved
Notes :
1- The report type is .REP
2- if I used the .JSP report, it is working fine , But i can't copy the source code for the report at the customer side.
Please HelpWell, first of all this would not be the correct forum. There is a dedicated reports forum for reports related questions. And secondly this most certainly depends on your report. If you have a query like
select * from my_tableor e.g. are using %rowtype records in your report then you most certainly will have to recompile it after you do an exp/imp.
cheers -
How to delete the child record from the database
how to delete a parent and child record from the database can we do it in the servlet and my database is oracle
I'm not sure I understand the question but you could certainly use the JDBC API from within your servlet to access and modify a DB. You could also use an EJB layer to access your DB and accomplish the same tasks.
-
I need the code to delete record in the database not in the form???
I need the code to delete record in the database not in the form...
because when i execute a form always insert the datas in the data base but i want insert value on a text file and delete in the data base the record whith this value of text file.
i'm spanish an my english is bad sorry.
thank, javierWell, I fail to understand why you want to complicate easy things, but anyway you can do that by using TEXT_IO within Forms to create text file (see Forms builder help), and UTL_FILE package to read it within Pl/Sql : you could create a stored procedure, and call it from Forms passing the file name as parameter. See UTL_FILE documentation
-
Create single message in receiving side for each record in the sender file
Dear Experts,
My Interface is from FILE to MQ (JMS)..
I have a specific requirement in my project, I have multiple files in sender directory ( /tmp)
Ex: FILE_20090202.TXT
FILE_20090203.TXT
FILE_20090204.TXT
FILE_20090205.TXT
And each file has couple of records just shown below:
ABC 123 WER SER
BCD 345 WEDR SER
CDE 567 GHTE DDGG u2026. Etc..
I have to process all the files at a time ( may be I can use file masking by FILE*.txt) , one message has to be created in MQ for each record of the file..
Ex:
Message 1: ABC 123 WER SER
Message 2: BCD 345 WEDR SER
Message 3: CDE 567 GHTE DDGG
Valuable inputs are appiciated !!
Cheers,
KumarAs already suggested, multi-mapping can be used
You need to set target root node occurrence to unbounded and map root node accordingly
you will have to use enhanced interface determinaion
For detail refer:
/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
Maybe you are looking for
-
Plant my G4's internal disk in new Mac Pro? Then what?
Hi all, I'm debating how to transfer existing data on my G5 to my new Mac Pro. There are old applications & stuff I'd still like to access on the G5 but not gum up my new system. This is what I'm considering: * Extract my boot disk from the G4 and in
-
Some photos won't export as versions
A proportion of photos from various projects won't export as versions, either JPGs or TIFFs. The files themselves aren't corrupt as I can open them in Photoshop and then save them as JPG or TIFF files or whatever I want. I though it might be library
-
Hi all, Can anyone give me information on BADI.We have urgent requirement in project for implementation of badis for various functionalities .An overview of badi implementation . Thanks in anticipation. Regards, Rajashree
-
Notification Pane Preferences Aren't Sticking After Restart
One issue I'm seeing with Yosemite. My notification preferences aren't sticking. Apple's default for apps in the notification pane is to show the 5 most recent items. For some apps, I'd only like to show 1 recent item. I make the change in my set
-
I have some video of hidden interrogation video from law enforcement. I have the shot in the timeline, and I have 2 duplicates of the video on top of the original shot. I cropped out the face and blurred it for one layer, and I did the same with the