How to populate a filter field in one page with the value from other page
Take the classic report with form application.
on page 1 (report) I have a filter (dbname) for the records that will appear in the report. Say that, I enter "ap02" in the filter and all records where dbname starts with "ap02" will display. It works ok.
Then I click on "create" button and page 2 appears. I enter all fields except the dbname. This field is generated, at "pre-insert trigger on the table".
What I want is when I press the button "create" on page 2 to pass the value of the generated dbname field into the filter in page 1 so when that page refreshes I will have only one record on the report page (1). I understand that the dbname at the page 2 level still empty because it is generated by the trigger. How do I have access to that info to populate the filter.
Thanks for your assistance
Joe - Work backwards from the value generated during the execution of the trigger. You have the value there so you could save it into a package variable right then (create a package with a variable and assign the value to the variable). Then create a process on the page (after the DML process) to assign the value of your package variable to a page item. Then in the branch back to page 1, pass the item. (Or without messing with the branch, the process could simply assign the package variable directly the the page 1 item -- :P1_ITEM := my_package.my_var; ).
An alternative would be to use the "returning into" feature of DML to capture the PK of the created record into an item. Then the next page process could use the PK to fetch the new row and get the dbname value for passing to page 1.
Another option would be to update session state directly in the trigger.
Scott
Similar Messages
-
Can I populate a text field in one PDF with the modification date of a different file ?
Rather convoluted problem here but I'm trying to place a text field on a PDF document that serves as the main menu page for a library of interlinked PDF documents
The complete library contains over 7,000 files and additions are added and documents changed almost daily.
We currently use batch files to open the main menu from it's shortcut and this runs a check on a sync log file (.txt) to ascertain when the last time the user synchronised with the server to get the latest copy of the files.
Between a certain time range they are told how long it has been since they sync'ed and are offered the option to sync before opening, after a prescribed timeframe they cannot enter without synchronising. We use Allways Sync to conduct the file synchronisation with our mother files on our server.
What I'd like to do is take advantage of Allways Syncs automatic synchronisation options to synchronise on log on and at prescribed idle periods there after.
This works fine but I'd like the text field on the main menu PDF to say when the last synchronisation took place - easy if the main menu is the last file modified .. just use info.modDate.
However, the main menu is rarely modified therefore I wish to import the text to populate the text field from a different file.. either by interrogating the other files modifictaion data (though I doubt Acrobat can do this) or by simply importing some text stored in another file (a .txt file?) which has previously been created by batch file commands.
Any assistance would be greatly appreciated.
Regards,
Nifty Styles
(Norfolk, England)
P.S. I'm using Acrobat 8.3.1. Professional on Windows XP (SP3).Thank you for all your help above.
Just to confirm your advice, am I right with the following conclusions? :
1. The script (function) to fill the text field with the modification date of a different PDF file needs to be stored in a folder level .js file.
2. The document containing the text field needs to call the .js function either within the document script or within the custom script property of the text field itself.
Further to that can you just advise on the syntax for accessing the modification date of the other document.
Do I need to assign a variable to the address of the file to be used, and then use this variable in the text form filling script (as below) or can I use a direct file reference at the .modDate command.
var LastSync = "C:\sync\bin\lastsync.pdf";
var strMsg = util.printd("h:MM tt",LastSync.modDate) + " on ";
strMsg += util.printd("dddd, d mmmm, yyyy",LastSync.modDate);
this.getField("LastSyncDate").value = strMsg;
If the syntax is totally different to the above I would be very grateful for some guidance in the right direction.
I much appreciate your time to help me ... I'm almost there.
Kind Regards,
Nifty -
How can I get the variable with the value from Thread Run method?
We want to access a variable from the run method of a Thread externally in a class or in a method. Even though I make the variable as public /public static, I could get the value till the end of the run method only. After that scope of the variable gets lost resulting to null value in the called method/class..
How can I get the variable with the value?
This is sample code:
public class SampleSynchronisation
public static void main(String df[])
sampleThread sathr= new sampleThread();
sathr.start();
System.out.println("This is the value from the run method "+sathr.x);
// I should get Inside the run method::: But I get only Inside
class sampleThread extends Thread
public String x="Inside";
public void run()
x+="the run method";
NB: if i write the variable in to a file I am able to read it from external method. This I dont want to doWe want to access a variable from the run method of a
Thread externally in a class or in a method. I presume you mean a member variable of the thread class and not a local variable inside the run() method.
Even
though I make the variable as public /public static, I
could get the value till the end of the run method
only. After that scope of the variable gets lost
resulting to null value in the called method/class..
I find it easier to implement the Runnable interface rather than extending a thread. This allows your class to extend another class (ie if you extend thread you can't extend something else, but if you implement Runnable you have the ability to inherit from something). Here's how I would write it:
public class SampleSynchronisation
public static void main(String[] args)
SampleSynchronisation app = new SampleSynchronisation();
public SampleSynchronisation()
MyRunnable runner = new MyRunnable();
new Thread(runner).start();
// yield this thread so other thread gets a chance to start
Thread.yield();
System.out.println("runner's X = " + runner.getX());
class MyRunnable implements Runnable
String X = null;
// this method called from the controlling thread
public synchronized String getX()
return X;
public void run()
System.out.println("Inside MyRunnable");
X = "MyRunnable's data";
} // end class MyRunnable
} // end class SampleSynchronisation>
public class SampleSynchronisation
public static void main(String df[])
sampleThread sathr= new sampleThread();
sathr.start();
System.out.println("This is the value from the run
method "+sathr.x);
// I should get Inside the run method::: But I get
only Inside
class sampleThread extends Thread
public String x="Inside";
public void run()
x+="the run method";
NB: if i write the variable in to a file I am able to
read it from external method. This I dont want to do -
How can I get the variable with the value from Thread's run method
We want to access a variable from the run method of a Thread externally in a class or in a method. Even though I make the variable as public /public static, I could get the value till the end of the run method only. After that scope of the variable gets lost resulting to null value in the called method/class..
How can I get the variable with the value?
This is sample code:
public class SampleSynchronisation
public static void main(String df[])
sampleThread sathr= new sampleThread();
sathr.start();
System.out.println("This is the value from the run method "+sathr.x);
/* I should get:
Inside the run method
But I get only:
Inside*/
class sampleThread extends Thread
public String x="Inside";
public void run()
x+="the run method";
NB: if i write the variable in to a file I am able to read it from external method. This I dont want to doYour main thread continues to run after the sathr thread is completed, consequently the output is done before the sathr thread has modified the string. You need to make the main thread pause, this will allow sathr time to run to the point where it will modify the string and then you can print it out. Another way would be to lock the object using a synchronized block to stop the main thread accessing the string until the sathr has finished with it.
-
How to populate ADF popup fields such as inputText with values
Dear All,
I am trying to display values other than database table field data into a popup with inputtext.
this values are derived thru some methods. I have created a editpopupfetchlistener event that calls this method and then populate the field by finding it using the below code:
AttributeBinding attrValue = (AttributeBinding)bindingContainer.getControlBinding("ViewResourceValue1");
System.out.println("Before setting of attribute");
attrValue.setInputValue(a.getViewResourceListener());
System.out.println("After attribute setting");
} else {
but I got an error of
<Oct 11, 2012 1:48:10 PM SGT> <Notice> <Stdout> <BEA-000000> <<LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase APPLY_REQUEST_VALUES 2
javax.el.ELException: java.lang.NullPointerException
during the setting of the attribute
attrValue.setInputValue(a.getViewResourceListener());
So here am i hoping someone could help me with this.
An advance Thanks! so much for any advice.
Using JDev 11.1.2
Rgds
DanHi,
have you checked that a.getViewResourceListener() does return a value <> null?
Can you post the error stack. Maybe there is more information why/where the error happens.
regards
Peter -
How do i replace my macbook's iCal data with the data from my iPad?
hi,
recently i decided to try iCloud and well, i didn't quite like the duplicates~
so i've decided to opt out, but i accidentally selected "keep all data" when i turned it off~
now i'm stuck with duplicates after i've sync-ed my iphone to my macbook~
i would very much like to replace all the ical data on my macbook with my ipad (it's my only set of "original" data)~
i do know there's an option to "replace all data on my ipad with my macbook" but how about vice versa?
any suggestions?
~KGreetings Kyrie,
iCloud does not inherently cause duplication of calendars. Once you have a good set of data following these steps you may want to consider trying iCloud again after first flushing all the bad data out of the cloud (meaning deleting all the calendars from icloud.com). But first things first:
If the iOS device is the only place where the data exists, proceed with caution.
Backup your iOS device: http://support.apple.com/kb/HT1766
Create a new admin user account on your computer: http://docs.info.apple.com/article.html?path=Mac/10.7/en/mtusr001.html
Go to Apple > Log Out
Login to the new account
Sync the iOS device in the new user and merge all data (not replace)
Launch iCal in the new user -- If the calendar database on the iOS device is intact you should see all the calendars here in iCal.
Highlight each calendar on the left hand side one at a time and then go to File > Export > Export and save the resulting file to desktop. Repeat this process until you have exported all the calendars you want saved to the desktop.
Quit iCal
Put the .ics files you created on the desktop into Macintosh HD > Users > Shared (You can get there by going to "Go" > "Computer" at the top of the computer screen.)
Go to Apple > Log Out
Login as the main user account
Go to Macintosh HD > Users > Shared and drag the ics files to the desktop of your user account.
Open iCal and add one new empty calendar by going to File > New Calendar > On My Mac.
Delete all the other calendars that have the bad data in them.
One at a time, double-click the ics files on your desktop and choose "New Calendar" from the resulting drop down menu. (This will create a new fresh calendar in iCal and import the contents of the ics file into that calendar.)
Hope that helps! -
Auto Populate Field in One Table with Primary Key from another table.
Greetings all,
I have created two tables. One for Root Cause which will be the based description information of an analysis. Each Root cause can have many corrective actions.
My Table structure is as follows:
RCCA TABLE:
=====================================
Column Name Data Type Nullable
RCCAID NUMBER No
DESCRIPTION VARCHAR2(4000) Yes
SUMMARY VARCHAR2(4000) Yes
OWNER VARCHAR2(4000) Yes
DATEOFINCIDENT DATE Yes
STATUS VARCHAR2(4000) Yes
CORRECTIVE ACTION TABLE
=====================================
Column Name Data Type Nullable
CAID NUMBER No
RCCAID NUMBER No
CANUMBER NUMBER Yes
CACTION VARCHAR2(4000) Yes
DATEDUE DATE Yes
COMMENTS VARCHAR2(4000) Yes
So I have a form that creates the RCCA and then I have another form that I want to feed off of the first form. My thought was that when the RCCA was created, it would open a report of the RCCA and then in another region of the page I would add corrective action form. What I am looking to do is when I press the Create Corrective Action, it will automatically populate the RCCAID in the Corrective Action Table so that it is associated directly to the RCCA. I don't want to have to have someone know what the RCCAID is from teh RCA table because they are autogenerated.
There may be a better way to do this and since I am new to APEX and to Oracle Databases, I am just going with what my logic tells me. Any assistance or thoughts would be appreciated.
Assuming there would be some type of trigger?
I will have to be able to view each RCCA and CA in a report that customers will see.
Thanks in Advance
WallyHi Debasis,
Have a look on this
Quick note on IDENTITY column in SAP HANA
Regards,
Krishna Tangudu -
How to initialized a variable in java file by taking the value from web.xml
suppose i declare parameter in web.xml file
i want to access if from a java file .
how can i do this . plz help me its urgent...............In your Servlet class you can use the getInitParameter("configfile") method.
-
How to read the value from other cubes ??
Dear All,
I have requirement to do some calculation where part of number there must be got from other info-cube.
e.g.
Cube 1
Has: Ch1, Ch2, Kf1, Kf2, Kf3
Cube 2
Has: Ch3, Ch4, Kf4, Kf5
Then the requirement need to compute:
KF1 = KF4 * KF3
Let say that our planning area use Cube 1.
Means, to get the value for KF1 we need to read data from cube 2.
I've tried to use this function: RSDRI_INFOPROV_READ
But it can't fetch the data. It caused when we go "manage" to
cube 1, the status for the corresponding request is yellow.
If we change the status into green, then we can get the record by that function.
My Questions is
Is there other way that can fetch data from other cube ??
Do you have any suggestions ??
Or ..
In my explanation above, is there some thing missing ?
Regards,
Niel.Hi Olivier,
Really thanks for your response...
But i still have distraction regarding your preceding posting ..
in a query, yellow requests from a trans cube can be read with the variable 0S_RQTRA (most current data) on 0REQUID.
I had a look into the corresponding exit ( FM = RSVAREXIT_0S_RQTRA ) and can see that SAP is filling 0REQUID with VALUE 'REQ_TRANS'
You mean, that we can check what status happening in corresponding info-provider by using this function: RSVAREXIT_0S_RQTRA . Am i right ?
Could you clear me up what the objective is for ?
I've tried your suggested function:
RSSEM_INFOPROV_READ
And yes it can take it .. But why it couldn't fetch all data ?
And also in RSSEM FG, i saw this function:
RSSEM_INFOPROV_READ_RFC
Do you know what the objective is for ??
Still need your guidance.
Regards,
Niel. -
How to populate dynamic table in Adobe Livecycle form with cfpdfform?
Hello all,
after two days search on the above topic without results I hope someone here can help me.
The problem:
I have an Adobe PDF form created with Adobe Livecycle Designer that has a dynamic table inside it. The table Table1 consists of a Header Row with 4 cells of text and a data row Row1 with four cells each one having a Textfield Cell1, Cell2,Cell3 and Cell4.
Table1 sits inside a subform mytable. The subform is made to flow and the Row1 has the Binding Repeat Row for Each Data Item checked.
Everything is enclosed within the standard subform form1.
Whe I use the following code, I supposed that the table should have two rows..because it is said it will be dynamic:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<cfpdfform action="populate" source="test.pdf" destination="testout.pdf" overwrite="yes" >
<cfpdfsubform name="form1">
<cfpdfsubform name="mytable">
<cfpdfsubform name="Table1">
<cfpdfsubform name="Row1">
<cfpdfformparam name="Cell1" value="1">
<cfpdfformparam name="Cell2" value="2">
<cfpdfformparam name="Cell3" value="3">
<cfpdfformparam name="Cell4" value="4">
</cfpdfsubform>
<cfpdfsubform name="Row2">
<cfpdfformparam name="Cell1" value="5">
<cfpdfformparam name="Cell2" value="6">
<cfpdfformparam name="Cell3" value="7">
<cfpdfformparam name="Cell4" value="8">
</cfpdfsubform>
</cfpdfsubform>
</cfpdfsubform>
</cfpdfsubform>
</cfpdfform>
<cfpdfform action="read" source="testout.pdf" result="testout" />
<cfdump var="#testout#">
</body>
</html>
What happes is:
The testout.pdf displays just one row,with the values 1,2,3,4 the second row is only visible when I export the data as xml but not within the PDF.
Please can someone enlighten me?
Thanks and regards
GilbertWhen populating your pdf fields, you can loop through all the records in a query like so...
<cfloop from="1" to="#query1.recordCount#" index="i">
<cfpdfformparam name="txtField1_#i#" value="#query1.Field1[i]#">
<cfpdfformparam name="txtField2_#i#" value="#query1.Field2[i]#">
</cfloop>
This will handle two rows or thirty rows just the same. In this case my fields in the pdf have the row # as a suffix. -
ADF-UIX- How to populate multiple input fields from an lov?
Like in Forms Developer where using an LOV we can populate multiple tex input items on selection of a value from the LOV, is it possible for us to do the same in ADF UIX.
Iam usiing JDeveloper 10.1.2Have a look at this previous post:
Re: Can return messageLovinput more than one value? -
How we can get the values from one screen to another screen?
hi guru's.
how we can get the values from one screen to another screen?
we get values where cusor is placed but in my requirement i want to get to field values from one screen to another screen.
regards.
satheesh.Just think of dynpros as windows into the global memory of your program... so if you want the value of a field on dynpro 1234 to appear on dynpro 2345, then just pop the value into a global variable (i.e. one defined in your top include), and you will be able to see it in your second dynpro (assuming you make the field formats etc the same on both screens!).
-
How to add a customer field or extn coll in the tab1&2&3..of a UDO doc?
Hi Experts,
Does anybody know how to add a customer field or extn collection in the unused tabs like tab1&2...in a UDO document?
Thanks for your reply in advance.
Thanks & Regards,
DavidHi Subhasini - <br><br>
It seems you have discovered that adding an extension field to the Project Suppliers collection is not possible; many of the collections in E-Sourcing do not support extensions and, even when they do, typically, the table view of the data cannot be changed to show the extension value (it would only show on a "details" page, for example.<br><br>
The solution that you have proposed may work, although I think there is a slight mistake in your logic. I believe you are saying that the script would take data from the newly created extension collection and populate data in the out-of-the-box vendor collection. <br><br>
In thinking about your solution, I believe the benefit is that any logic and reporting based on the standard collection continues to function correctly (e.g., creating an RFx from the Project will use the out-of-the-box vendor collection).<br><br>
That being said, I generally am reluctant to do a "replace" of a standard collection with an extension collection as you propose. My recommendation is that you challenge the customer on the importance of this requirement. For example, could the code be maintained on the vendor record? Why is it maintained in Projects? If it is maintained in the vendor record, could you just populate a read only collection the Projects that shows the vendor and code? Could a report be written that can be launched from within the Project to show the values? How does the customer intend to use this field? Could the display name of the vendor object be the right place for it?<br><br>
I hope these ideas are helpful.<br><br>
Regards,<br><br>
Rob<br><br> -
How to populate drop down list in infopath 2010 with form library column
I created one column of choice type and have put 3 values on this column in form library in site.
and one drop down list in form library at infopath 2010 but how to populate the dropdown in infopath populate with this column.Hi John, you should either add the values to your InfoPath dropdown manually or create a new list in SharePoint with the values and make a connection to that list to populate your dropdown.
cameron rautmann -
How to pass the values from one screen to another
HI,
consider me21n,
po is created with the item category L,so components tab is enabled.that u all know.
i have added the custom tab in the item details with netwt,gross wt,no of pieces and one more field.
those fields are also in component structure of material data.
i need to pass the matnr,maktx,quantity,ntwt,grosswt from the component to be displayed in the subscreen.
i used import mdpm to xmdpm from memory id 'subcon', where it is exported from the function module 'me_components-maintain'.
how to pass all the values from component of structure MDPM to the subscreen of custom tab in the item details.
help me pls........................'hi everyone,
MODULE status_0111 OUTPUT.
data : fill type i.
SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'xxx'.,
DESCRIBE TABLE lt_zzmm_po_comp LINES fill.
ctrl_0111-lines = fill.
ENDMODULE. " STATUS_0111 OUTPUT
MODULE fetch_data OUTPUT.
ctrl_0111-lines = 2.
import xmdpm to lt_xmdpm from memory id 'SUBCON'.
IF not sy-subrc eq 0.
CLEAR lt_zzmm_po_comp[].
LOOP AT lt_xmdpm.
MOVE-CORRESPONDING lt_xmdpm TO lt_zzmm_po_comp.
APPEND lt_zzmm_po_comp.
ENDLOOP.
MOVE-CORRESPONDING lt_zzmm_po_comp TO ctrl_0111.
read table ctrl_0111-cols into col where index = 3.
ENDIF.
ENDMODULE. " FETCH_DATA OUTPUT
MODULE pass_line OUTPUT.
READ TABLE lt_zzmm_po_comp INDEX ctrl_0111-current_line.
MOVE-CORRESPONDING lt_zzmm_po_comp TO ctrl_0111.
ENDMODULE. " PASS_LINE OUTPUT
flow logic
PROCESS BEFORE OUTPUT.
MODULE status_0111.
MODULE FETCH_DATA.
loop at lt_zzmm_po_comp WITH CONTROL ctrl_0111 cursor
ctrl_0111-current_line.
module pass_line.
endloop.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_0111.
loop.
*module read_data.
endloop.
but i cant see my fields in the table control .....i dont know y it is not coming?can anyone help me with code...
Maybe you are looking for
-
How do i turn off an app with iOp 7?
It looks like the method to close an app on the iPhone has changed with iOp 7. Double clicking the main button is now use to go from open app to another open app. How do you close an app nos to stop it from consuming battery?
-
How do I transfer an imovie from one mac to another and be able to edit it?
I need to transfer an iMovie project from another mac onto mine and be able to edit it in its components...help!
-
How do I add tag words to my website in iweb
I need to learn how to add tag words to my website (in iweb).
-
How do i set my email up on my dock
The stamp on my dock does not bring up the correct email account, how do I change this? I would like to change it so when I select this icon it brings up the entire email account. As it is now it is only partial, like "old school" off line mode for c
-
Automatic entry for Common Stock , first consolidation in additional data
Hi, I need to know why, after uploading the notification data, the system automatically populates an entry on the additional notification data for 'Changes in Investee Equity' at the activity "First consolidation". I must tell that there were no prev