Passing key from report to form
HI, I am new to HTMLDB and have created an application which has a report based on a master table with a clickable key(user_id) which then takes you to the detail based form. If the record for the form exists then it works just fine but I have a problem when trying to create a new record on the form and that is "How do I pass the key(user_id) from the report to the form after getting a 1403 error??"
Bryan
I'm not sure how a detail table can have a userid for a PK. Is it guaranteed to have at most one record for the Master table?
Can you put the url associated with a detail page into this thread?
I suppose you could put a process on the page that checks to see if the record exists, and if not clears all the values of the page. That might solve the problem? Does the create button take you to the same detail page?
Anton
Similar Messages
-
How can I pass parameter from report to form?
Hi :)
Now I try to build conference room like this by using form
and report. And i design that when users click at group report
then i'll show page that contain questions report and add
question form. And question form and report must receive the
same parameter from group report.
First Problem: is I don't know how group report send the
same parameter to question report and add question report at the
same time. And is it possible??? If not please suggest me what
should I do???
Second Problem: is I don't know how can I pass parameter from
report to form. I don't know the way to do it.
Please tell me!!! Please...
I look forward to hearing from all of you.
Thank You.One way is to create a link based on that form and attach that
link with the report. Through links you can pass parameters -
Passing parameters from REPORTS to FORMS.
Hi,
Could anyone help my on this, I'm trying to pass parameters from reports to forms is it possible? could anyone give me an idea how do I have to proceed.
thank youk,
binohttp://technet.oracle.com:89/ubb/Forum4/HTML/009647.html
-
Hw to pass parameter from report to forms
Dear Friends,
I m working on Forms n Reports 6i,
I m running report n passing parameter from the forms now the requirement is that if report run successfully it shuld give the msg otherwise give an user define error msg.
Hw do i pass any parameter from report to form for acknowledgment.
Thanking yours
ChandanHi Rajat,
using run_product built in i can pass parameter from forms to reports but hw can i get some parameter value from reports to forms as mentioned earlier my post
Thanking Yours,
Chandan -
How to pass value from report to form?
Dear,
I built a report and I create button on report too. This
button will show a form that I want it to automatically show
receivable values from report so that user don't complete them.
So I create a button on the report . I enter Javascript in
PL/SQL Code tab in '...after displaying the footer' as follow :
htp.formOpen
(owa_util.get_owa_service_path||'portal30.wwa_app_module.link?
p_arg_names=_moduleid&p_arg_values=1736929105&p_arg_names=_show_h
eader&p_arg_values=YES&p_arg_names=GNO&p_arg_values=1&p_arg_names
=QNO&p_arg_values=2');
htp.formSubmit(null,'New Answer');
htp.formClose;
GNO , QNO is value which I want to pass
As you can see, the above code can pass only static value.
But I want to pass values that is the condition of this report.
I mean,such as, this report show data that gno=1 and qno=2 and I
want to pass these values to form. So both value will appear in
gno and qno field.
So please tell me what should I do. Please help me. I don't
know how to do it. I look forward to hearing from all of you.
Please!!!!!! Don't hesitate to answer.
Thank you very much
Sirin KittichotpanichHi Marc,
Yes, you have it correct in what I am trying to do and if I put a default value in the hidden item on page 2 and run it then that works fine. I just can't get the value from the form passed to page 2 for some reason. There are actually 22 items on the form that can be filtered but just using COREID for simplicity. When I run the form I am just entering a value in the COREID field to try and return those records. Most of the other items on the form are displayed as Popup LOV(fetches first row). Would the values of all these be done the same in a comma delimited list for the items and values? I was trying to get at least one of them working first. Here is the search result that comes up in the debug window:
Search Results
0.01: Item: P2_COREID HIDDEN
0.01: show report
0.02: determine column headings
0.02: parse query as: MOTEAMSAPEX
0.02: binding: ":P2_COREID"="P2_COREID" value=""
0.02: print column headings
0.02: rows loop: 15 row(s)
No data found.
Here is the SQL statement:
select coreid, serialnumber
from MOTEAMS.V_ASSETS where
instr(UPPER("COREID"), UPPER(:P2_COREID)) > 0
The branch settings are:
Set these items: P2_COREID
With these values: &P1_COREID (also tried this with period at the end)
I am new to this and not familiar with apex.oracle.com. How would I go about posting to that site?
Thanks,
Pam -
Passing parameter from reports to form - Urgent
Hi ,
I am calling a report (2.5) from a form using RUN_PRODUCT. I would like to know if there is any way to do the following.
(a) Return a value from reports to calling form. For ex. I would like to know the last Item name (assuming the reports prints all items in inventory) printed. I am sending a from and to numbers of item id's (range) and I need to know the last item printed.
(b). Check the success of report. For example, while printing the 5 items (the range that I passed) if there is any error in printing , this should be tracked either in the form or report. If this is not possible using run_product , If I need to use srw package, how to use it. Can I call the report as usual with run_product and in the after parameter trigger can, I call the report again and track error.
Any help will be appreciated.
ThanksYou have to explain what you want.
Why would you want to start the Forms Builder (Design time tool) from a JSP page? It's about the same as starting JDeveloper or Eclipse from a JSP page. -
Passing parameters from report to form portlet
I am trying to link data in a report to a form. Here's the gist: I click on a record in the report and the data is passed to a form in update mode. The problem is that when I click on the record the data is not passed right away to the form. Only after clicking the record again or refreshing the page does the data get passed. Any ideas? I'm sure it's something very simple that I'm missing. Here's the code below:
report code:
select 'http://jvic9/pls/portal30/portal30.empcust.set_context_refresh?p_context=EMPNO&p_context_value='||empno||'&p_page=reportform">'||empno||'' empno_link, empno, ename, job, mgr, hiredate, sal, comm, deptno
from scott.emp
set_context_refresh procedure:
procedure set_context_refresh
p_context in varchar2,
p_context_value in varchar2,
p_page in varchar2)
is
v_Session portal30.wwsto_api_session;
begin
v_Session := portal30.wwsto_api_session.load_session('CONTEXT','SESS_EMP');
v_Session.set_attribute(p_context, p_context_value);
v_Session.save_session;
owa_util.redirect_url('http://jvic9/pls/portal30/url/page/'||p_page); end set_context_refresh;
form code:
/* ... before displaying the page section */
portal30.empcust.autoquery_emp_form(p_session);
autoquery_emp_form procedure:
procedure autoquery_emp_form
p_session in out portal30.wwa_api_module_session
is
v_RowID varchar2(100);
v_Session portal30.wwsto_api_session;
v_empno varchar2(40);
begin
v_Session := portal30.wwsto_api_session.load_session('CONTEXT','SESS_EMP');
v_empno := v_Session.get_attribute_as_varchar2('EMPNO');
begin
select rowidtochar(rowid) into v_rowid
from scott.emp
where empno = v_empno;
end;
p_session.set_value(p_block_name=>'DEFAULT',p_attribute_name=>'_CALLED_FROM_LINK',p_value=>'ROWID');
p_session.set_value(p_block_name=>'DEFAULT',p_attribute_name=>'_ROWID',p_value=>v_rowid);
portal30.wwa_api_module_event.do_event('DEFAULT','QUERY_BOTTOM',1,'ON_CLICK',True,'',p_session);
p_session.save_session;
end autoquery_emp_form;Your code seems to be OK.
The problem of the data not appearing when you do the query manually (i.e through an API call), is a bug and has been fixed in patch 3.0.9.8.3. -
Passing parameters from report to form
Hello,
I have a report based on a View with all the details of only one record. I whant to link this report with a form in insert mode, passing some of the fields as parameters.
Anyone konws how to do it?Jan,
Thanks for the succinct reply! I've been trying to 2 days to solve this problem. Whew!
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Jan Willem Vermeer ([email protected]):
Unfortunately linking reports and forms in insert mode is not completely tackled in the faq.
For a long time Oracle Customer Support and I were not able to get the form in insert-mode. My forms kept on appearing in query-mode, so when I passed values from the report to the form, the form queried records based on the parameters passed through from the report. While I wanted these parameters filled in as default values.
The solution is almost too easy to imagine. When you define the link-parameters in the report definition, you should leave the EQUAL-sign blank. On metalink you can read TAR 1258704.996 and bug 1696340 for more info.<HR></BLOCKQUOTE>
null -
Passing variables from Report to Form
Hi, I need pass a couple of variables from the REPORT to two fields in the FORM for save in a table. Somebody knows how do I do this?. Any suggestions?
Thanks a lot!
I think that this situation is different that pass variables from FORM to REPORT.You need to use a Link component to your Form that you then attach to one of the data columns in the Report. When you edit the link in the report, you can specify the fields to pass.
-
Passing Parameter from report to form
I have a report, link, and form developed. They all work just fine execpt that when the form comes up it is not linked to he record that it was called from. I have read the links on passing parameters and still do not understand what I have to do.
Here is the basic scenario. I have a report that is a list of account codes for a project. There is a link from the account code to the acount code form where the user can change the status (active/inactive) of the account for a project. If the user clicks on the link for account 1000 thenI would expect that the form opens with account 1000 in update mode.
How do I do it. It seems a very simple concept. What am I missing?
Jerry
[email protected]I am obviously missing something. In editing the link, I have a user parameter of atab. This is the column that is linked in the report. What do I use as the default value. Does it make a difference if the table does or does not have an index on the atab? The PK is an ID.
Please help
Jerry -
Passing parameter from report to form on the sam page
i would like to make a portal page with 2 portlets. on the left side a report displaying for example all names and empno4s from the emp table and on the rigth side a form portlet that displays the details of one employee and allows to update the details.
clausI am obviously missing something. In editing the link, I have a user parameter of atab. This is the column that is linked in the report. What do I use as the default value. Does it make a difference if the table does or does not have an index on the atab? The PK is an ID.
Please help
Jerry -
OnSubmit function Error in passing values from WDA Adobe Form to Ztable
Friends,
I am trying to pass values from Adobe Interactive Form to ztable.
I am using WDA to display the form. I have created the form context with attributes that are bound to the form fields using the Adobe Livecycle Designer.
Once the user presses the Submit button, the data is passed to the ztable. In the onSubmit function assigned to the Submit button, I am using the "Read Context" feature of WD Code Wizard to read the values of the attributes
I am able to read and populate the ztable with values of the first 3 attributes. But am unable to read the value of 4th attribute using the "Read Context" feature of WD Code Wizard. All 4 attributes are of string type.
I am not sure if this is a buffer size problem or is there a limitation that only 3 attributes can be read per Adobe form / onSubmit function.
Please let me know what is missing.
Thanks and Regards.Resolved
-
How could I pass parameter that depend on values in report from report to form?
In my case, I want to pass 'gno' and 'qno' values of report
to form. When click on the button then the form is showed.
There are automatically values in gno field on form so that user
don't complete this filed.
So I create a button on the report . I enter Javascript in
PL/SQL Code tab in '...after displaying the footer' as follow :
htp.formOpen
(owa_util.get_owa_service_path||'portal30.wwa_app_module.link?
p_arg_names=_moduleid&p_arg_values=1736929105&p_arg_names=_show_h
eader&p_arg_values=YES&p_arg_names=GNO&p_arg_values=1&p_arg_names
=QNO&p_arg_values=2');
htp.formSubmit(null,'New Answer');
htp.formClose;
The above code can pass only static value, while I want to
pass values that depend on value in column of report to form.
So please tell me how can I pass this value to form. I look
forward to hearing from all of you. Please!!!!!!
Thank YouThanks for the prompt reply.
Yes. I am using a Custom Step Type.
I have attached a trial code which contains the trial VI, sequence and the type palette ini file.
Please have a look at it.
Regards,
Mirash
Attachments:
Injection trial.zip 35 KB -
Pass non-database parameter from report to form
(Portal 3.0.9) In short, how do I pass a non-database parameter into a form?
I am calling a single form from multiple reports. On successful submission of the form, I want to return to the calling report. I have built the dynamic "go" statement in the success submission portion of the form:
declare
return_to_report varchar2(30);
begin
return_to_report := p_session.get_value_as_varchar2(
p_block_name => 'DEFAULT',
p_attribute_name => 'A_CALLING_REPORT');
go('<portal_schema>.'||return_to_report||'.show');
end;
The problem is that I'm unable to populate the "calling_report" field in my form since it is non-database and does not appear in the list of available variables in my link.
Also, it would be better to pass the value (report name) in a session parameter or global variable so that it is not tied to a specific record in the form, but I cannot find documentation for help.Hey,
You could also create your own link in the SQL statement.
SELECT
display_link_update(asset_seq) as Update_Record,
column2,
column3,
from table
display_link_update is the function call and I'm passing one variable, asset_seq. Now the function can do the link creation and pass the link back to be displayed on the report.
CREATE OR REPLACE FUNCTION "PROPERTY"."DISPLAY_LINK_UPDATE"
(asset_seq1 in varchar2) return varchar2 is tag varchar2(4000);
begin
tag:='Update Link';
return tag;
end;
I need to check out session variables. Do a Google search, there should be a few items about it. I'll look into in a few days beacuse I should learn this myself.
Tom -
Passing parameters from report portlet to a forms portlet
Hello All,
I am trying to link data in a report to a form. Here's the gist: I click on a record in the report and the data is passed to a form in update mode. The problem is that when I click on the record the data is not passed right away to the form. Only after clicking the record again or refreshing the page does the data get passed. Any ideas? I'm sure it's something very simple that I'm missing. Here's the code below:
report code:
select ''||empno||'' empno_link, empno, ename, job, mgr, hiredate, sal, comm, deptno
from scott.emp
set_context_refresh procedure:
procedure set_context_refresh
p_context in varchar2,
p_context_value in varchar2,
p_page in varchar2)
is
v_Session portal30.wwsto_api_session;
begin
v_Session := portal30.wwsto_api_session.load_session('CONTEXT','SESS_EMP');
v_Session.set_attribute(p_context, p_context_value);
v_Session.save_session;
owa_util.redirect_url('http://jvic9/pls/portal30/url/page/'||p_page);
end set_context_refresh;
form code:
/* ... before displaying the page section */
portal30.empcust.autoquery_emp_form(p_session);
autoquery_emp_form procedure:
procedure autoquery_emp_form
p_session in out portal30.wwa_api_module_session
is
v_RowID varchar2(100);
v_Session portal30.wwsto_api_session;
v_empno varchar2(40);
begin
v_Session := portal30.wwsto_api_session.load_session('CONTEXT','SESS_EMP');
v_empno := v_Session.get_attribute_as_varchar2('EMPNO');
begin
select rowidtochar(rowid) into v_rowid
from scott.emp
where empno = v_empno;
end;
p_session.set_value(p_block_name=>'DEFAULT',p_attribute_name=>'_CALLED_FROM_LINK',p_value=>'ROWID');
p_session.set_value(p_block_name=>'DEFAULT',p_attribute_name=>'_ROWID',p_value=>v_rowid);
portal30.wwa_api_module_event.do_event('DEFAULT','QUERY_BOTTOM',1,'ON_CLICK',True,'',p_session);
p_session.save_session;
end autoquery_emp_form;Hi John,
If Not CRRpt.ParameterFields("AgeType") Is Nothing Then
CRRpt.ParameterFields("AgeType").CurrentValues.Clear()
Dim ParamValue As new CrystalDecisions.Shared.ParameterDiscreteValue
ParamValue.Value = AgeType.ToString
CRRpt.ParameterFields("AgeType").CurrentValues.Add(ParamValue)
End If
Note that the ParamValue.Value should be assigned with exact same data type as you declared it in CR.
If it is string, Convert your Variable to string first.
If it is date, make sure you are passing a date variable.
and so on...
Regards
Edy
Maybe you are looking for
-
Creative Cloud Says My Subscription is Ending, but Amazon Says Otherwise
I subscribed to Adobe Creative Cloud late last month through my Amazon account and my school email address for a discount. I have been able to use the products fine so far for the past month, but I just got a pop-up when opening Photoshop today that
-
I'm being told that in order to connect wirelessly at Starbucks or other locations she needs a "wireless card" for her Macbook which requires a monthly subscription? Does anybody know what this means? If so, where might we find this "card" and how mu
-
Will third party software called "Bug me" and "YAPS" work on the Centro?
I am currently a Tungsten E2 user. I am considering buying a Palm Centro and want to know if the third party programs "Bugme" and "YAPS" work on the new Centro that is offered by Verizon? Secondly does the Centro have the ability to "tap" in letters
-
Control chart limit calculation not being done
Hi I have maintained MIC, sampling procedure and Insp plan for a char and have made two lots with them. Though charts are being displayed correctly, control limit calculation is not being possible. Msg is "Control limits for track 1 could not be calc
-
How can I upgrade from Photoshop Elements 12 to Photoshop Elements 13 AND Photoshop Premiere Elements 13? What would be the price?