Dependency on previous parameter
I have a report that contain 2 dynamic multiple selection parameter what I like to accomplish is on selection of parameter 1 will be population of list of parameter 2 example:
Fields u201Clocationu201D and u201CBoxu201D
Location can be 1, 2
Box can be a,b,c,d but a and b belong only to location 1 c and d belong only to location 2 .
As right now parameter 1 show all location what is ok but parameter 2 show all boxes and I want to show only the boxes that belong to location selected how I can accomplish this?
If I select location 1 should show boxes a, b
If I select location 2 should show boxes c,d only.
Thank you.
Hi
It doesn't tale much time, you need to create a parameter. Please Follow the below steps.
1) Select Dynamic under List of Values.
2) Give a required prompt group text as you required.
3) Under the Value in the First Line Select Location, no need to give any description. Then under Parameter in the same row just give a left mouse click. Now this is for Location 1 to select box a,b.
4) Do it in the next row as above for Box, select box and no need of any description then again under parameter give a click to create a parameter for box. Click on ok.
5) Now in the Preview select "SELECT EXPERT", In the choose fields dialogue box, select Location Column under "report fields".
6) From the drop down list select "equal to" option. From the second drop down list select the Parameter which is like,
EG : {?My Parameter - Location}
7) Click on ok, that will automatically return you to a dialogue box that asks you to enter your prompt.
That's all you need to do.
Regards
Raj Mahesh
Similar Messages
-
Hi,
Lets say, we have three parameters A, B and C. B is dependent on A, C is dependent on A and B. If A value is entered, then we can list only the values of B which are related to A. If User is not entered A value then how can we list all values available in B? In the sameway for C also ( If A and B values not entered then it should allow to select a value from all available values in C)?
I don't want to put default "ALL" value and then use this in other value sets to get all values. Is there any other way using some dummy parameters? I searched in threads but couldn't find relevant.
Thanks,
Venkat.Hi,
Lets say, we have three parameters A, B and C. B is dependent on A, C is dependent on A and B. If A value is entered, then we can list only the values of B which are related to A. If User is not entered A value then how can we list all values available in B? In the sameway for C also ( If A and B values not entered then it should allow to select a value from all available values in C)?
I don't want to put default "ALL" value and then use this in other value sets to get all values. Is there any other way using some dummy parameters? I searched in threads but couldn't find relevant.
Thanks,
Venkat. -
How to add a version by default depending on previous version found in db of a record?
Hello,
How to add a version by default depending on previous version found in db of a record?
E.g ID 0001 Version : 1
when inserting id 0001 version 2.
I want the version to be added automatically on insert , depending on id input.
Thanks.Hi,
I think using a trigger is better choice.
from application, you should manage concurrent processes.
Regards -
2 columns dependent on user parameter, others are not - complicated
Hi
My select statement (for reporting purposes) contains 8-9 columns from a number of tables.
My problem is that 2 out of these columns will depend on the following:
a. user entered parameter
b. more complex joins needed for just this column - on difefrent tables than used by most of the columns
ex: of above (excluding other columns that do not depend of user parameter):
select sum(col1), sum(col2)
from tab1, tab2, tab3
where tab1.col1 = tab2.col1
and tab1.col2 = tab3.col2
and tab1.col3 = (select col1 from tab4 where tmstmp = (select max(tmstmp) from tab4)) and tab1.col5 = (select col1 from tab6 where col1 = <userparameter>)
How can I combine the above with my main sql statement that looks like
select...
from tab10, tab11,tab12,tab13,tab14........
where ...........
order by
Any ways to resolve the above problem without affecting performance too much ... greatly appreciated.
Thx!that looks like a dba's nightmare. I wouldn't want that running on my server.
Perhaps you can simplify it using functions. -
Show report in different currency depending on user parameter
hi all,
i'm trying to show my report in different currency, depending on users given parameter.
i hold my account balance in USD based. User should select one parameter, in which currency they want to see their account balance. (e.g. EURO, GBP ...) and depending on their selection, i want to convert USD based info into chosen currency, by fetching field from currency table and making some calculation.
also i want to include in report currency($, £ ...) accordingly ().
how can i achieve this, has somebody any suggestion to me?
thanks in advance.
bogi.hi,
i think i need to explain my problem more detailed. anyone who has suggestion, please help me.
i have 3 tables account, times and currency.
- times table has time_key, date, day_of_week fields.
- account table has - account_balance and time_key_FK fields.
- currency table has currency_type, amount, time_key_FK fields.
1. i have function decode(:Currency,'USD',account_balance,'EURO',--here i want to replace my calculation CALC1---)
CALC1- this calculation need to some calculation like this: account_balance * (fetched field from this sql)(select amount from currency, account where currency.currency_type='EURO' and account.time_key_FK=currency.time_key_FK)
i tried to do this, but discoverer plus doesn't let me make condition and calc. i'm very confused.
2. after i achieve this query, somehow i want to display on worksheet on which currency is it based. can i get parameter value, and show this value as in column heading?
tnx!!! -
How to control field status depending on input parameter to screen?
Hi,
I'm sure I met the solution somewhere, but can't find it. Here is the situation:
I have Screen sequence - my scr.100 calls 110 (detailed screen). I would like to achieve creation or modification of a detailed item depending on an input parameter (ok_code), which I know how, but whould also like to set some fields for input/output or for output only depending on the same parameter.
Could anyone help me with piece of code or describing what should I do to achieve this (in an example of 1 field)?
Possible variant is to create another screen - for modify mode, which is not so elegant for me, and yes, I know how to do that.
Many thanks in advance.
Ivaylo MutafchievTry this.....
LOOP at Screen.
if screen-name = 'YOURFIELD'.
screen-input = '0'.
modify screen.
endif.
endloop.
Regards,
Rich Heilman -
How to create a Parameter dependent over another parameter for ESS job
Hi Team,
We have defined an ESS job for which we have 2 parameters (parameter values are based on LOV).
Now we have to make these parameters dependent.
Any inputs on this are highly appreciated.
Thanks,
PraveenAre you using parameter VO, If so I think you should be able to create cascading list.
Jani Rautiainen
Fusion Applications Developer Relations
https://blogs.oracle.com/fadevrel/ -
Modifying sql query in "region source" depending on hidden parameter?
Hi,
Is there a way to run 2 sql queries in "region source" depending on the hidden parameter passed? In other words, if I want to show all employees "select * from emp" when clicking on a "total" link as opposed to "select * from emp where dept=:xxx" when clicking on a dept link, how does the "region source" account for another sql statement?
thanks.My understanding is that based on the link you click on in some page (PX) , it will go to a page (PY) that has a report in it and a hidden item with som passed value.
If that is correct then do the following in PY:
select * from emp
where dept=:xxx
or
:PY_PASSED_VALUE = 'total'this will show ALL records in emp if the passed value is total , i.e you clicked on the totals link and passed 'total' to the hidden item in PY : PY_PASSED_VALUE
but it will show only specific dept records otherwise.
Hope this helps,
Sam -
Showing Dynamic parameters depending on Static parameter
Post Author: Relais
CA Forum: General
Is it possible to show dynamic parameters depending on the selection of the static parameter?For example, I would like to show a dynamic list of Departments, only if u201CDepartmentu201D is selected from the static parameter list.
Or if u201CCategoryu201D is selected from the static list, then I would like to prompt the user with a dynamic list of available Categories.
Is this possible or must you always show all parameters?Any feedback would be appreciated.
Thank you.Hi,
What i would do is in addition to what you already have, create a new view V-Channel and embed this view as default view in the Window.
Create 2 outbound plugs (to_view1 , to_view2)
Create a event in component controller like event_name is NAVIGATE and the parameter is TO of type string.
Create a method go_navigation with parameter destination of type string.
Write your code in this method to fire the Navigation event filling the TO parameter with destination.
In the V_Channel subscribe to this event NAVIGATE. and write the code for firing outbound plug to_view1 or to_view2 based on the TO parameter value.
Remember to connect these outbound plugs to the right inbound plugs in the ViweContainerUIElement views.
In the start-up plug event handler method, retrieve the URL parameters and call the Go_NAvigation method filling the right value for the destination parameter. -
Painting records depending on previous record
Hi all,
I need to pute the foreground color of a record depending on an field of the previous record, i mean, if the current record has the same data than the previous one it has to be blue, but if it's different it has to be red.
can someone tell me how to do, and in wich trigger.
thx!Hello,
Here is the good way to check the duplication in detail block. So use the same logic and instead of showing message you can set the visual attribute on your choice. See the link below.
http://sheikyerbouti.developpez.com/duplicates/duplicates.htm
So, in WHEN-VALIDATE-RECORD there is message "This record is duplicated". There use your blue visual attribute and add one ELSE condition and use the 2nd visual attribute.
Remove the RAISE FORM_TRIGGER_FAILURE line.
-Ammad -
I have a scenario where it has multiple parameters like.....
Period which consists of "Year,Quarter,Month" as a values.
When user selects "Year" value in "Period" Parameter then "FromMonth" has to set its default value as 36th month from now.
Example: If user selects "Year" then "FromMonth" has to show "April-11".
When user selects "Year" value in "Period" Parameter then "EndMonth" has to set its default value as current month.
Example: If user selects "Year" then "FromMonth" has to show "March-14".
If user selects "Month" Value in "Period" Parameter then it has to allow user to select the Month Range and again if user selects "Year" value in "Period" Parameter then StartMonth has to show 36th month from now and
End Month has to show current month.
Please help me how to resolve this issue.
Thanks in Advance.Hi Vasu_479,
First, you need to create a dataset to set the StartDate and EndDate parameter's value using the query provided by Visakh. And then use the StartDate and EndDate parameter to filter the data in MDX query. Here is a sample query for your reference.
select
{[Measures].[Internet Sales Amount]
} on columns,
{[Date].[Date].members} on rows
from(
select
STRTOMEMBER("[Date].[Date].&["+@StartDate+"]"):STRTOMEMBER("[Date].[Date].&["+@EndDate+"]")
) on columns
from [Adventure Works]
Hope this helps.
Regards,
Charlie Liao
TechNet Community Support -
Nested Parameters Dates dependant on earlier parameter-Crystal Reports
I am writing a production Activity report which combines Production orders, purchase orders and MRP run recomendations.
The user has to select the MRP scenario and then a start and end date range for the report. The date range must be within the start and end date for the chosen MRP scenario.
I can create the first parameter
name: MRPScen@select AbsEntry,MsnCode from OMSN
This happily allows the user to select the MRP scenario.
Now I want to select a start date using the AbsEntry returned from the parameter above to return the startdate and end date for that record in OMSN.
My current parameter is
StartDate@select Startdate from OMSN
but this allows the user to select a date from a different MRPscenario.
I have tried the name below, but it also does not work.
StartDate@select Startdate from OMSN where AbsEntry=MRPScen@select AbsEntry,MsnCode from OMSN
Idealy I would like it to select the start date from the scenario and then allow the user to change it to any day up to the EndDate
Any ideas please
Thanks
ChrisGordon,
you say tokens only work for key fields. By that do you mean they have to be a database primary key or do secondary keys also work for tokens? Also do multi field keys also work? Is the token name the key field name followed by the @?
Also do you know how to make a hierarchy of parameters work
eg select country is 1st parameter
second parameter is state where it will only select valid states for the country chosen
third parameter is area where the area belongs to the state chosen.
In each case no option is available that is invalid. If the country is USA then only USA states can be selected from the drop down, states in Australia for example are not visible etc.
thanks Chris -
Creating drop down menus that change dependant upon previous menu
I need to create a drop down menu and then have the next drop down change its content based on the selection in the previous menu
Would anybody have any code that I could play around with that would help me achieve this?
Thanks!!
MarkHi Mark,
This should get you close:
Create a .cfc call it product, as in save as product.cfc
You'll need to change the datasource name and the FROM clause below on both queries.
<cfcomponent output="false">
<cffunction name="getProduct" access="remote" returnType="query">
<cfset var data="" />
<cfquery datasource="yourdb" name="data">
SELECT product_uid,product_title
FROM yourtable
</cfquery>
<cfreturn data>
</cffunction>
<cffunction name="getSubProduct" access="remote" returnType="query">
<cfargument name="product_uid" type="numeric" required="true">
<cfset var data="" />
<cfquery datasource="yourdb" name="data">
SELECT sub_uid,sub_title
FROM yourtable
WHERE sub_product_uid = #ARGUMENTS.product_uid#
</cfquery>
<cfreturn data>
</cffunction>
</cfcomponent>
Imbed this in your your cfm page:
<cfselect
name="Product"
bind="cfc:product.getProduct()"
style="width:387px;"
size="1"
multiple="No"
required="No"
display="product_title"
value="product_uid"
bindonLoad="True">
</cfselect>
<cfselect
name="Sub Product"
bind="cfc:product.getSubProduct({product_uid})"
style="width:387px;"
size="1"
multiple="No"
required="No"
display="sub_title"
value="sub_product_uid">
</cfselect> -
Dynamically Load Subreport depends on Parameter?
Hi
I am wondering if it is possible to create a crystal report that includes a sub-reports section, which can load different subreport (.rpt) file into that section dynamically depends on the Parameter. E.g.
@ReportID = 1
then it load abc.rpt as a subreport
@ReportID = 1
then it load apple.rpt as a subreport.
Could you give me some suggestion about what do i need to do, If I want to create a report like that.
Many thanks
ChiChi,
you can create parameter {?ReportID} in main report and then create 2 sections for subreport abc.rpt and apple.rpt .
If you want have subreports in report header then you have to create 2 sections of report header.
Each subreport has to be in separate section.
Then go to Section Expert and enter following into suppress formula for those sections:
for section with abc.rpt : {?ReportID}<>1
for section with apple.rpt : {?ReportID}<>2
That's it.
Hope it helps.
Lena -
Modify hidden parameter in variant
I'm submitting a report in a program using a variant just to be sure (the report fills many optional parameters depending on user parameters).
Yesterday I found out the program is crashing because of a hidden parameter that gets filled depending on previous action from some users.
So I have two options
- Change the submit to make sure the parameters is always set to off.
- Change the variant setting the parameter off.
I would think the second option is the easiest, but I can't find a way to manually modify the hidden parameter in the variant in the production system.
Yes, I could modify it in development and then transport it but that would imply a transport request and I'm trying to avoid that.Yes, there is a parameter id involved.
The no-display parameter has three states.
Y- Display ALV grid
N- Display ALV list
Others - Check previous user preferences using a parameter id
I want the report to always be displayed as an ALV List because I need to export it to memory. However, I never submit this parameter in the first place and the variant I'm using has the parameter empty, so it always checks the user preferences.
Changing the parameter id is not an option.
I tried in development and I do can change the content of the parameter using the debugger and later saving the variant the value stays.
But as I said, I want to avoid anything concerning a transport request right now. If I can change the value of the parameter to 'N' right into production it would be great
Maybe you are looking for
-
Trouble: HD "Data Lost," DiskWarrior stumped, then a "Clean Install"
Hello Classic Fans, Since installing OS 9.1 on my 1998 WallStreet PowerBook on 25 April 2005, I enjoyed a PERFECT computer until 3 days ago (16 Feb. 2006) when my Mac started badly acting up. I'll chart what happened and what I did to correct the pro
-
Java FX apps won't run on the browser with Linux
This is my current system configuration: Opensuse 12.3 x64 Nvidia Gefore 9600gt with Proprietary drivers Tried both the Oracle Java 7u45 and 7u51 (Installed according to: SDB:Installing Java - openSUSE) Google Chrome and Firefox (Latest versions for
-
I'm creating a book from an album in iPhoto. I have downloaded the latest version of iPhoto. When I choose a book, i.e. wirebound, 19-20 page book, it shows a 42 page book when I am populating the pictures in the book I've selected. Is that becaus
-
Can only see the video message -no video call ?
Why is there no video call button only video message.
-
Hi I'm trying to have production orders set with the "Blocked" status when a sales order is credit blocked. This is a MTO environment and as a default the system actually sets the "DLFL" status in such a situation. The problem with the standard setup