Displaying second parameter based on first parameter
Dear Developers,
In the parameter form or reports, I want to pass value selected
in the first parameter to the second parameter
ie. based on the first parameter selected, I would like the
query written in the second parameter for
displaying list to display only those values that are associated
with the first parameter.
How can I do this?
I do not want to call report from form with preselected
parameters.
Awaiting speedy reply
Gaurav
You can't do this in Reports. You need to do it in Forms
Similar Messages
-
Second LOV based on First LOV in Oracle APEX tabular Form
Hi,
I had created a tabular form in which I am having two LOV's. This form is based on a query.
I had created a javascript function which internally calls AJAX and populates the second LOV based on the value selected in first LOV when onchange.
But the issue is, when the user recalls this APEX page to view the details or edit the details, the second LOV shows all the values instead of showing only the values related to first LOV.
In the second LOV query I am trying to write the below query.
select function_name fn
,function_code_id fci
from catering_function_codes
where function_type_id = NVL(#FUNCTION_TYPE_ID#,function_type_id)
order by to_number(function_code_id)
in which #FUNCTION_TYPE_ID# is the value of first LOV. But I am getting the below error.
report error:
ORA-20001: Error fetching column value: ORA-06550: line 1, column 187:
PL/SQL: ORA-00911: invalid character
ORA-06550: line 1, column 7:
PL/SQL: SQL Statement ignored
How can you refer to the Second LOV the value of First LOV in a report based tabular form?
Kindly let me know if you do not understand the issue.
Please help me in this issue.
Thank you
Regards
DevHi Roel,
Thank you for the quick reply.
I used the query as given by you. This time it is not giving any error but showing all the values in the second LOV irrespective of what ever value is present in the first LOV
This is an apex tabular form which is generated by apex based on a query. The controls will be dynamically generated by APEX for each row. How can we hard code the control name to :P99_FUNCTION_TYPE_ID?
Please help me in this issue. Thank you
Regards
Dev -
Loading second dropdown based on first dropdown Jdev 11.5
Hi All,
I have a requirement of loading the second dropdown on selecting first dropdown.
Ex:- conside i have state dropdown, when i select and state it should load city(dropdown) of the states.
I tried using valuchange listerner with partial trigger it didnt work. Any help would be of great help.
Please let me know.
Thanks,
Nitin
Edited by: 811407 on 21-Dec-2011 02:59
Edited by: 811407 on 21-Dec-2011 02:59http://www.youtube.com/watch?v=nXwL2_RP7AQ.
you eg: goes here.
http://www.youtube.com/watch?v=94PrwXWDEjI
http://andrejusb.blogspot.com/2008/12/cascading-lovs-in-oracle-adf-11g-update.html -
How to refresh values in second messagechoice based on first messagechoice?
Hi All,
We had a requirement where we need to populate values into second messagechoice item based on the value selected in the first messagechoice item.
We need to take the value (first messagechoice) as output parameter and need to pass as input parameter to the second messagechoice VO.
Can any please help me how to achieve the above.
Regards,
SundeepHi Sumit,
Thanks for the reponse. I will go for the one you suggested.
Can you please go through my new thread if you have time which is a very urgent requirement for me.
Thread subject: "How to change VO's dynamically for a item for each row in advanced table?"
Regards,
Sundeep. -
Conditional display of parameter based on another in a concurrent program
I've a concurrent program with two parameters
(PARAM1) STATUS ->
Value set = NN_STATUS BASED ON TABLE NN_STATUS_LKP
DEFAULT VALUE :SELECT LOOKUP_CODE FROM NN_STATUS_LKP WHERE LOOKUP_CODE IN ('REQUIRED','REJECTED')
(PARAM2) NOTE -> Valueset 240 Characters
I want second parameter to be displayed only if first parameter value is REQUIRED
I searched this forum and I tried $FLEX$ with no luck?
Thanks,
KiranHi Sandeep,
In my scenario,
first parameter is based on Table But second parameter is based on standard value set i.e 100 characters . No table is involved.How to make second parameter depend on first?
Thanks,
Kiran -
Conditionally displaying a portlet based on parameter?
Hi, I've been looking for a way to show or hide on a page a portlet (the standard Oracle search one, but it could be anything else) depending on whether a parameter is set to 0 or 1. So far the only "solution" I've found is to instead have two copies of the page, one with and one without the portlet in question, but obviously this scales very badly and is a bad idea from a maintenance POV.
Is there a clean way to do something like this?
Thanks,
CedricYes, You can do it .. but it is little tricky. We have done something like this.
First, you may know that all portlets are rendered by PPE , so we can not pass parameters to PPE to display particular portlets based on parameter.
Instead, with in that Portlet, If the parameter is "N" then don't display any HTML from that portlet. Hope you know How to Pass page parameters to Portlets.
Other way to implement this is by Portal Groups and granting access to those portlets,
Still , if you are not convinced you can have a look at Portlet SecurityManager Class..
Thanks
Shan -
How to display dynamic parameter picklist based on other parameter?
The report uses two parameters 1. Order placed date and 2. Sales Agent name. First parameter (Order placed date) is a static date range that allows users to enter a date range to run the report. The second parameter is a dynamic parameter that displays Sales Agent names as a picklist. Users can select one or more agent names. This pick list is generated using a SQL command.
We would like to display the names of Sales agents (in the parameter pick list) who were active (i.e. who took orders) between the date range selected in the first parameter.
Currently the picklist, lists names of ALL sales agents (about 100) irrespective of the date selected in first parameter. So, users are forced to go through the entire list of agents instead of agents that were active during that period.
We are using CR 2008 on Edge 3.1.
Any elegant way to achieve this? Your help is appreciated.
Regards,
Mohit.
Edited by: Mohit Saran on Oct 19, 2009 2:46 PMI realized that the question got posted in Bus Objects General forum and have reposted it in Crystal Reports Design forum (as originally intended). Sorry for the confusion.
-
How do you display a parameter form built from a report?
Does anyone know how to display the parameter form from building a customized report, as a portlet on a page? Everytime I try, I get the report, which will return no records because it does not first ask for the query parameters.
thanks!
nullYou don;t select Run to Run the report with
parameters - you select the Customize option.
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Sarah Lo ([email protected]):
Does anyone know how to display the parameter form from building a customized report, as a portlet on a page? Everytime I try, I get the report, which will return no records because it does not first ask for the query parameters.
thanks!<HR></BLOCKQUOTE>
null -
How to display Reports parameter form in Oracle Forms 10g.
hello,
am migrating from Forms 6i applications to Forms 10g.
one of my application contain report, that report display parameter form
I wrote below code for WHEN-BUTTON-PRESSED Trigger
DECLARE
pl_id ParamList;
v_report_id report_object;
v_report varchar2(100);
vjob_id varchar2(100);
vc_rep_status varchar2(100);
BEGIN
pl_id := create_parameter_list('my_list');
add_parameter (pl_id,'P_HOSPITAL_ID',text_PARAMETER,
:bm_hospitals.hospital_id);
add_parameter(pl_id,'PARAMFORM',text_PARAMETER,'NO');
v_report_id := FIND_REPORT_OBJECT('bm_r001');
v_report := RUN_REPORT_OBJECT ( v_report_id,pl_id );
vjob_id := substr ( v_report, length(<reportservername>)+2,
length( v_report) );
vc_rep_status := REPORT_OBJECT_STATUS (v_report);
IF vc_rep_status = 'FINISHED' THEN
WEB.SHOW_DOCUMENT ('/reports/rwservlet/getjobid'|| vjob_id||
'?server=rep_mohahubkpcomp_ORaHOme_IAS'||'&userid=
bedman/bedman@bedman'||'¶mform=yes','_blank');
ELSE
message ('Report failed with error message '||vc_rep_status);
END IF;
Destroy_Parameter_List(pl_id);
END;
The Above code is running report and displaying Output perfect but cannot
display the Parameter Form at runtime.
any help in this very thankful.
Regards
Gagan.In Your code there is a line:
add_parameter(pl_id,'PARAMFORM',text_PARAMETER,'NO');
which actually disables the report parameter form.
The line:
WEB.SHOW_DOCUMENT ('/reports/rwservlet/getjobid'|| vjob_id||
'?server=rep_mohahubkpcomp_ORaHOme_IAS'||'&userid=
bedman/bedman@bedman'||'¶mform=yes','_blank');
displays the report to which vjob_id refers. At this point the report is competed so the parameters userid and paramform are useless.
Hope this helps.
Regards
Bekcic Aleksandar -
Contradictory Display of parameter shared_pool_size?
Hello All,
I want to change the value of the parameter shared_pool_size. I am on Oracle 9i and I confirm that dynamic SGA is activated.
I use brtools to change this parameter and use scope=spfile.
After I change the parameter I go back to the Display parameter menu and when I display this parameter value it shows,
Parameter value=<old value> Why?
Value in spfile = <new value>
when i give the cmd show parmeter from SQL prompt it displays <old value>. Why???
Now even if i use scope='memory' or 'both' the outputs are,
In brtools Menu,
Parameter value=<old value>
Value in spfile = <old value>
and through sql prompt -> <old value>
can someone please explain?
I understand this parameter change doesnot require a restart because Dynamic SGA is activated but even a restart of DB doesnot help.
Thanks,
BidwanHello All,
After executing the command SQL> create pfile from spfile; i restarted the insstance
SQL> startup
ORACLE instance started.
Total System Global Area 219750092 bytes
Fixed Size 454348 bytes
Variable Size 134217728 bytes
Database Buffers 83886080 bytes
Redo Buffers 1191936 bytes
Database mounted.
Database opened.
SQL> show parameter shared_pool_size
NAME TYPE VALUE
shared_pool_size big integer 92274688 <---Old Value
SQL> exit
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.4.0 - Production
F:\Documents and Settings\abcadm.HOME>brtools
BR0651I BRTOOLS 6.40 (15)
Information about database parameter 'shared_pool_size'
1 - Parameter description (desc) . size in bytes of shared pool
2 - Parameter type (type) ........ big integer
3 - Modifiable attribut (modif) .. both
4 - Defined in spfile (spfile) ... yes
5 - Database instance (instance) . *
6 - Defualt value (default) ...... no
7 - Parameter value (value) ...... 92274688 <---Old Value
8 - Value in spfile (spfval) ..... 91274688 <---New Value
9 - Comment on update (comment) ..
My Pfile :
initABC.ora
*.background_dump_dest='E:\oracle\ABC\saptrace\background'
*.compatible='9.2.0'
*.control_file_record_keep_time=30
*.control_files='E:\oracle\ABC\origlogA\cntrl\cntrlABC.dbf','E:\oracle\ABC\sapdata1\system_1\cntrl\cntrlABC.dbf','E:\oracle\ABC\saparch\cntrl\cntrlABC.dbf'
*.core_dump_dest='E:\oracle\ABC\saptrace\background'
*.db_block_size=8192
*.db_cache_size=81920000
*.db_file_multiblock_read_count=8
*.db_files=254
*.db_name='ABC'
*.dml_locks=4000
*.enqueue_resources=8000
*.fast_start_mttr_target=900
*.hash_join_enabled=false
*.log_archive_dest='E:\oracle\ABC\oraarch\ABCarch'
*.log_archive_start=true
*.log_buffer=1048576
*.log_checkpoint_interval=0
*.log_checkpoint_timeout=0
*.log_checkpoints_to_alert=true
*.open_cursors=800
*.optimizer_features_enable='9.2.0'
*.optimizer_index_cost_adj=10
*.optimizer_mode='choose'
*.pga_aggregate_target=31457280
*.processes=80
*.remote_os_authent=true
*.sessions=96
*.sga_max_size=209750092
*.shared_pool_reserved_size=9011200
*.shared_pool_size=91274688
*.sort_area_retained_size=0
*.sort_area_size=2097152
*.statistics_level='typical'
*.timed_statistics=true
*.transaction_auditing=FALSE
*.undo_management='AUTO'
*.undo_retention=43200
*.undo_tablespace='PSAPUNDO'
*.user_dump_dest='E:\oracle\ABC\saptrace\usertrace'
*.workarea_size_policy='AUTO'
Can someone thow some light now?
Thanks,
Bidwan -
Display Multiple Parameter Values in Specific Format
In CR XI, I have a string parameter that allows single and multiple values.
Values are Ward 1, Ward 2, Ward 3, Ward 4
Iu2019m still a newbie at Crystal and canu2019t figure out how to display the parameter values in the report header in a specific way. Join({?ward},",") works fine to show the values selected, but the format is awkward.
Would love to hear any suggestions on a formula that will display the parameter values in the header as follows:
For a single parameter value: Ward 1
For two parameter values: Wards 1 and 2
For three parameter values: Wards 1, 2 and 3
If all four values are selected: All Wards
Hope I made my question clear, and thanks in advance!Thank you so much for your response; it does work, at least partially.Certainly is pointing me in the right direction.
Is it possible to modify the case statement to add more arguments? I tried, but it didn't work correctly, although that is likely user error.
For instance, if selecting a single value, it could any of the wards, not just Ward 1. And multiple values could be Wards 2 and 3, or Wards 1 and 4, or Wards 2, 3 and 4. There are at least a dozen different possibilities, and I need a formula or case statement to account for all those possibilities. -
Cascade LOV display as text (based on LOV) in clasic report
Hi Experts,
It is possible to use cascade LOV - item is displayed as text (based on LOV) in clasic report ? (Display AS)
I would like to reference to another column displayed in the report in LOV.
Example:
select description d,
val_strg2 r
from domain_cntr
where cntr_name = 'CH_PRIM_ST_NOTE'
and val_strg1 = #PRIM_STATUS#
and active_idc = 'Y'#PRIM_STATUS# is the column i would like to reference.
Is it possible ? IN CLASIC REPORT
regards
J :DHi,
>
Is it possible ? IN CLASIC REPORT
>
Yes.
It may a rather long thing to code, so be ready for it.
Here is how:
a. Use APEX_ITEM API in your Report Query. Make sure you specify the p_item_id parameter , using #ROWNUM#
b. In the Parent LoV wrtie an onChange event trigger that fires a JavaScript function and pass the ID of the element .
c. In this JavaScript function make an AJAX call to get the <select>...<option...>...</select> , in short the complete HTML of the child LoV
d. Push this HTML fragment into the Child Lov. You construct the ID of the target based on the ID of parent . E.g. f01_0001 to f02_0001.
e. You may additional keep the child invisible or disabled initially, and then make it visible/enable it after it is populated.
Regards, -
How to Display Seconds in a JSP file
I want Display seconds in a SP page ,i need to alert the user that this page will be forwarded in 10 secs , so i need to display that on the page ..how can i make this happen ...can anyone throw some light on this issue ...
Thanks
ShyamHello,
Not sure to understand clearly what you want to do. So here some lights based on my understanding.
So you want to see the page redirects to another location after 10sec, so in my opinion it has nothing specific to do with JSP but pure HTML development.
1- Do the redirect
Option 1
On easy way is simply to put a meta-tag in the header of your page, something like
<HEAD>
<META HTTP-EQUIV="refresh" content="10;URL=http://blog.grallandco.com">
</HEAD>
Option 2
You can also do it using Javascript:
<script>
function redirect()
window.location="http://grallandco.com"
function loadPage()
var timer = window.setInterval("redirect()", 10000);
</script>
<body onLoad="loadPage();">
2- Print the countdown
Maybe you also want to print the countdown on the page. For this you have lot of solutions based on Javascript. I did a quick Google search on "javascript Countdowns redirect"
Here one that looks good and easy to integrate to any page:
Cool Redirect
Regards
Tugdual Grall -
Pie Chart Only Displays the Data of the First Row of the Table
Hi Experts,
I have a problem that the pie chart will not change when click on a second row or other rows on the table. It only displays the data of the first row of the table. How can I set up to make it reflect on any rows when I click the table? Please help, and I would very appreciate that.
Thanks,
-DonThanks a lot for your response. I have realized that the pie chart behaves that way, so I just use the filter to see the specific data that I want. Also, you can drag the row and drop it right at the first row to see the data in the pie chart.
-
Display the data based on country currency
Hello All,
I was created one alv report in that i have display currency field based on country currency.means if if company code is india it is display 44.44 and if it is viyatnam 4444 with no decimals both will display in same report .I tried lot but i was getting please any one have solution give me reply fast.
Thanks & Regards,
VenkateshHi,
While poplulating the feild catelogue internal table. Pass the currency field in the internal table.
then pass the paramter cfieldname for the amount field with the name if the field of internal table which contains the currency unit. and also create the seperate entry in the feild catellouge for the currecy unit as well.
for more detalis see the REUSE_ALV_GRID function module documentation.
Maybe you are looking for
-
Can't Send Emails From Gmail account on iPhone
Everytime I try to send an email from my gmail account on my phone it says "The connection to the outgoing server "smtp.gmail.com" failed. Additional Outgoing Mail Servers can be configired in Settings>Mail,Contacts,Calendars."
-
We have a VB.NET project which has recently been migrated from Visual Studio 2003 / .NET 1.1 and Crystal Reports 11 to Visual Studio 2010 / .NET 3.5 and Crystal Reports 2008. One of the forms uses the crystaldecisions.windows.forms.crystalreportviewe
-
How to refer value obtained in a cell to another cell in webI
I have a scenario, where i need to caluclate maximum of column in a report and I need to use that value in each row of another column. I can do it by creating variable but this will not workout, so is there any thing like where that value in a cell c
-
PSE 13 error: "the system cannot find the path specified"
I have been getting the above error when i try to watch a mapped network drive folder. Any ideas why this is happening and what i can do to fix it? User permissions are set correctly.
-
IOS Security Msg On AIR 3.7
Hi, I am using the new 3.7 SDK with my mobile Flex application, and have a situation where my externally loaded swf is generating mysterious messages in the debugger console. The mobile app downloads and caches swf files from a server, then loads the