How do I reference a field in form portlet?
I created a simple form portlet in Oracle Portal using the wizard.
I want to execute a custom pl/sql query using simple select statement. (e.g. select emp from scott where ...)
I created a new Button item.
In the PL/SQL Button Event Handler I put the select statement.
Now I have 2 questions.
Question 1. Do I have to use the Query or Custom button.
Question 2. In either way I get PLS-00428: an INTO clause is expected in this SELECT statement.
I guess the fundamental question here is how do I reference a field in the form?
If I understand you correctly you want to click on the button and then display a value selected from the database, right?
1. You have to use the Custom button - query is exclusive for the form query.
2. You will have to select the value into an interim PL/SQL variable and then set the form field using the portal session attribute.
The following principles apply:
* To set a field you have to use code like
p_session.set_value(
p_block_name => 'DEFAULT',
p_attribute_name => 'A_RFS_ID',
p_value => 30);
p_session.save_session;
where
- p_session is available in most custom PL/SQL blocks - I'm not sure if its in the custom block for a button - this type of code is used mostly in the "cusom pl/sql before form is displayed" (last tab) - if its not available you might have to jump through some more hoops !:). It refers to a portal stored session that is used to store all the internal variables.
- block_name is either DEFAULT for simple forms or MASTER or DETAIL for master/detail forms
- p_attribute_name is the name of the field you want to set BUT (very important) prefixed with A_
- p_value is the actual value - here you will use your pl/sql variable.
so try something like:
l_number number;
select anumber into l_number from atable where ....;
p_session.set_value(
p_block_name => 'DEFAULT',
p_attribute_name => 'A_field1',
p_value => l_number);
p_session.save_session;
Similar Messages
-
How do we reference a field that is contained in a sortingTable
Hi,
Do any of you smart people have an example of this solution.
Note: I have included the tag baseContext='variables' in the form.
How do we reference a field that is contained in a sortingTable.
If a sortingTable has selectEnabled set to true and the table has 5 rows and 3 columns. Suppose the checkbox on row 2 is checked. How does one reference the field defined at row 2/column 3 ?
Is this reference anywhere close ? variables[selected=true].rowSelected ?
And I am able to get first column values by refering sortingtable field name. I need first and second columns values. Please help me.
Thanks,
Sabaree.Restart the computer and hold the mouse button down while it is starting up.
A dozen ways to eject or unmount a recalcitrant CD or DVD
http://www.osxfaq.com/dailytips/08-2002/08-12.ws
Ejecting media in Mac OS X: Removing 'stuck' CDs/DVDs
http://www.macfixit.com/article.php?story=20041011075232575 -
How to edit View based field in forms
Hi All,
I developed a Query-Find Form for Customer details.In main form(after querying) I have some fields where the data is coming from a View.All are non -editable fields,But I need to make one Particular field as editable.How can I make that field as editable?
could anyone please give me any solution.
Thank you in Advance.Hi;
Please check Re: Field is not editable and see its helpful
Regards
Helios -
How to 'clear' file upload field in forms
In a form I am designing I need a 'clear' or 'reset' button that clears the entire form. This is easy to do, of course, but alas my form has a file upload field, and in Safari I just can't get that field to go back to it's default empty state.
is there a secret way to force file upload fields in safari to reset, or is it just impossible?I've just done a quick search on bugzilla and came up with this http://bugzilla.opendarwin.org/show_bug.cgi?id=8248.
-
How to compare a database field and form field and highlight differences
Hi there,
I have been trying to find a coldfusion function that will help, I have tried comparing two strings but the results of -1 1 or 0 aren't very useful.
I need to compare a database field with a form field and highlight all the differences in the form field in red.
Thanks
KatieThis is a non-trivial process. Rather than doing a compare, you really are wanting to do a diff. CF doesn't do this out of the box, but you might want to have a sniff around on Google to see if anyone has implemented anything for CF.
Some reading:
http://en.wikipedia.org/wiki/Diff#Algorithm
Adam -
How do you layer buttons/fields in forms
I am using Adobe Pro 9 and need to layer some buttons. I know how to size and ailign but I don't see where to layer them.
You can place one on top of another. To set the order, set the tab order.
-
Reference a field from master query in detail query
Hi,
Please tell me how do I reference a field say incident_no in my master query to a detail query.
like
detail.incident_no != master.incident_no
I am joining both the queries using a link. But still I need to reference another field from the first query in my second query. I thought this was possible using formula columns or trigger's. Please help.Hey Vadim,
That worked. How come.. You know I did it several times before and all it said was, that it was going to create a new parameter field called so and so.
Good, so does it work just this time or always ? just kidding. Reports is so unpredictable, at least for me.
Thanks Vadim,
Joe. -
I am working in Adobe Acrobat 9 Pro and just created a pdf form from a MS Word document. I need to find out how to have a date field in my form which will update automatically.
Update automatically under which circumstances, exactly?
-
How to show a time field in a form portlet
Hi,
I am not familiar with PL/SQL and I was wondering how I could show a time field on a form portlet.
I have a date column in my database that stores the time and date together, but I do not know how to separate them into date and time fields. I also do not know how to concatenate them when a user inserts a new record, or how to query on a date alone.
At present, the user has to type the date and time following this format mask hh:mi am DD/Mon/RR
I also have a problem with one of my hidden id fields. I have set the default to a sequence.nextval (#qtc_app.seq_visitor.nextval) and then hidden it since
it is irrelevant to my users. However, I can no longer use the query function since the sequence is always generating a new value. How would I only generate
a new sequence no. when a user inserts a record??
Thank you!
cheers, KimHi,
Each colunm in the form has a format mask associated with it. For the date column make the format mask like this DD-MON-RR HH.MI. This will show the date along with the hours and minutes.
Thanks,
Sharmila -
HOW to include a reference currency fields in a view ?
Hello Experts,
<b>I am having Currency fields error in generic extraction</b>
I have table where I am trying to extract data to BW via generic extraction. When I tried
to extract with the TABLE its giving me an error
<b>Invalid extract structure template RPSCO of DataSource ZBW_REP3_TEST
You tried to generate an extract structure with the template structure RPSCO. This operation failed, because the template structure quantityfields or currency fields, for example, field WLP00 refer to a differenttable</b>.
Now I created a view with all the fields same as my table.
But its still giving me the same error and taking all the fields as a primary keys. I have over 12 currency fields in the table. I am confused how to fix this issue and add a currency field to my view?
hOW to include a reference currency fields in a view ?
All inputs are much appreciated.
Thanks and Regards,
HarishThank you for your responce,
Can you please check my view and let me know where I am going wrong
View Table Field Dataele Data
field type 0
WLP01 RPSCO WLP01 BP_WPL CURR 15 Period value in ledger currency
WLP02 RPSCO WLP02 BP_WPL CURR 15 Period value in ledger currency
WLP03 RPSCO WLP03 BP_WPL CURR 15 Period value in ledger currency
WLP04 RPSCO WLP04 BP_WPL CURR 15 Period value in ledger currency
WLP05 RPSCO WLP05 BP_WPL CURR 15 Period value in ledger currency
WLP06 RPSCO WLP06 BP_WPL CURR 15 Period value in ledger currency
WLP07 RPSCO WLP07 BP_WPL CURR 15 Period value in ledger currency
WLP08 RPSCO WLP08 BP_WPL CURR 15 Period value in ledger currency
WLP09 RPSCO WLP09 BP_WPL CURR 15 Period value in ledger currency
If I add a
Table TCURC against any field what would be the view field and data element
Do I need to tick MOD?
Please suggest.
Kapadia,
If I do that its still taking all the fields are a primary keys and bringing 6 lakh records to where I originally have 49 records in a table
Thanks and Regards,
Harish -
How to insert the new field to standard scheduling agreement script form.
Hi Gurus,
how to insert the new fields to standad sheduling agreement script form. its a need for me, i want to display the AEDAT field in scheduling agreement form ,
The below one is my requirement,
ex:- Itu2019s requested the change of Scheduling Agreement printout. Itu2019s requested for this type of document, the insertion, into the field u201CData Emissionu201D into the print, of the document last modify date instead of the document creation date. (This change will be done only for position change into the Scheduling Agreement). No change into the PO.
Change SAPSCRIPT printout. Introduction, into the Scheduling Agreement, of last modified
document date (field EKPO-AEDAT).
Thanks & Regards
chinnuopen TNAPR table and give the output type you need to modify.... get the print program name and check if some structure already have the date you wanted... if you have it already... then open the form in SE71 tr. and provide the strcuture name - feild in the position you want to have the date...
se71--->
&<str. name>-AEDAT& -
HI FRIENDS HOW TO ADD A EMAIL FIELD IN MEDRUCK FORM.
THANKS IN ADVANCE
Moderator message : Warning - Read forum rules before posting. Not enough re-search before posting the question, don't use all capitals, use meaningful subject lines. Thread locked.
Edited by: Vinod Kumar on Jun 13, 2011 5:33 PMHi,
As there is no such OOTB feature can meet your requirement, it will need some customization with the REST API and JavaScript to implement the effect of drag and drop and the
auto-populated functionality.
Here is a demo about how to use the HTML file upload control to perform the picture uploading with “drag and drop”:
http://www.html5rocks.com/en/tutorials/file/dndfiles/
Another demo about how to upload file using REST API:
http://anthony-verschraegen.blogspot.com/2013/12/sharepoint-2013-js-upload-file-to.html
SharePoint 2013 REST API:
http://msdn.microsoft.com/en-us/library/office/fp142380(v=office.15).aspx
http://msdn.microsoft.com/en-us/library/office/jj164022.aspx
Best regards
Patrick Liang
TechNet Community Support -
How can I format a field in the form creator?
How can I format a field in the form creator? It's putting the same text in all the fields within a table. I want each field within the table to have different text. As soon as you click out of the table, all the text is the same.
I even changed the fields from a text box to a drop-down list so a person can make their selection, which will be a quantity from 0-9. There are two of these such fields. You make your selection in each, click off the table and both fields show whatever I selected in field 1. The original Qty I selected in the bottom field was a 5 but it changed it to whatever is in the top field on it's own. I've added a screen shot.This behaviors usually happens when you create the fields but a copy paste command from one of the fields. The copy paste command assumes that your intentions is to maintain a copy of the field in two separate locations (e.i, a form field "company name" printed in each and every page of a multi-page form document.
Go to the properties fields of each field and make sure to assign unique form field names. -
With a PDF Dynamic form using show/hide actions, how to ensure that when the completed form is saved, closed and re-opened, the form still show the fields as before it was closed?
I have developed a form with fields hidden by default, that become visible based on box ticked or radio button selections.
My problem is that, when I close the form and re-open it, it comes back to it's default presentation, regardless of the information already recorded in the form (including in the now hidden fields.
How to correct that
Thanks in advance for any hint you can provide.I've had the same problem. This solved it...
Go to the "Form properties..." in the File-menu. Select "Run-time" to the left and in the box "Scripting" Preserve scripting changes to form when saved: choose Automatically (Script-based state changes are saved locally in an insecure fashion. This option cannot be used for certified forms).
Hope it works for you to... -
how to find and replace data in form fields in acrobat xi, its not allowing to do so while trying, asking for adobe livecycle to get installed. please help.
Easiest way to do it is the following:
- Open the PDF file in Acrobat.
- Go to Tools - Forms - More Form Options - Export Data.
- Save the form data as an XML file somewhere on your system.
- Open XML the file in a plain-text editor (I recommend Notepad++).
- Let's say you want to replace all the years in the dates from "2013" to "2014". Do a global Search&Replace of "2013-" to "2014-" (I added the dash just to make sure that only date fields are edited).
- Save the XML file (maybe under a new name).
- Go back to the PDF file, and now go to Tools - Forms - More Form Options - Import Data.
- Select the edited XML file and import it.
- Done!
Maybe you are looking for
-
FM working but variable is not getting displayed
Hi Experts I have created Function module as below for BEx Variable. c_eq(2) type c value 'EQ', " for between C_i(1) type c value 'I', " for inclusive C_space(1) type c value ' ', c_1(1) type n valu
-
Havent used my iPod in awhile. Went to plug it into computer to charge and got a screen that flashed the apple logo a few times and then went to a screen with a charging symbol but not the normal one (had gray plain background and lack symbol). Compu
-
ipad 2 screen is black . when i press the power button it takes a screen shot but i have no functionality . tried holding the home and power button together but the screen just flicker and stay black . no apple icon shows up. help please
-
Hello, we just upgraded to NW EHP2. After this, our WebDynpro Application create an dump "CX_WDR_ADAPTER_EXCEPTION", if we call an Pop-up ( it's just an View with an IFRAME-Element ). If i delete the Iframe, the Pop-up is called correctly. I know tha
-
Install iLife 08-??
Hope I am in the right forum. Just recently installed Leopard (still not sure all went OK with that but is running), and I want to install iLife 08. Previously have been using iLife 05. I know I do not want to use iMovie 08 and understand I can downl