How to pass virtual column as an argument for a function in a query as given below
I want to pass the column MinMark as an argument please help
Select CASE WHEN MIN(mark1)
<= MIN(mark2) AND MIN(mark1) <= MIN(mark3) THEN MIN(mark1 ) WHEN MIN(mark2) <= MIN(mark3) THEN MIN(mark2)
ELSE MIN(mark3) END AS MinMark
dbo.ufMarkStatus(a.student,a.term,MinMark )
from Mark a;
polachan
Try the below:
;With cte as
Select a.student,a.term,CASE WHEN MIN(mark1)
<= MIN(mark2) AND MIN(mark1) <= MIN(mark3) THEN MIN(mark1 ) WHEN MIN(mark2) <= MIN(mark3) THEN MIN(mark2)
ELSE MIN(mark3) END
From Mark a
Group by a.student,a.term
Select dbo.ufMarkStatus(a.student,a.term,a.MinMark ) From cte a
Similar Messages
-
How to pass custom search help(F4 help) for a field in ALV output?
Hi,
I want to activate the F4 help in ALV output for a field for which we do not have search help assigned at table ,data element and domain level.
In field catalog i have enabled it by below line.
ls_fcat-F4AVAILABL = 'X'.
but because there are no standard input help available it is giving message as "No input help is available".
so how to pass our custom search help (g_search) for any field in ALV output.
I am using object oriented ALV grid display.
Thanks!!!
Rajesh Gupta.hi,
check this out:
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/b3d5e890-0201-0010-c0ac-bba85ec2ae8d
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/acdefb13-0701-0010-f1a2-8eeefa7d3780
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b3d5e890-0201-0010-c0ac-bba85ec2ae8d?quicklink=index&overridelayout=true -
How to pass a variable value into a custom planning function via a web
Can some one tell me
How to pass a variable value into a custom planning function via a web template?
What are the different types of Planning function parameters available and what is the difference between them?
Thanks
babuHi Sutrtha,
Yeah I got the pop up asking to select the variables used, I have selected ENTITY_ID that was used by the interfaces, but on execution of the package the Scenario did not work as the passeed variable #ENTITY_ID is set to 0 instead of the value I am passing.
Am I missing something?
Regards
B -
From report 6i send email as attachment How to pass recipient Column.
When I execute report and at preview stage when
click on e-mail button then e-mail box appear
Auto Pick following Fields
1 Subject : "Report sent through Report Builder"
2 Attach : "Report with <file Size>"
My qs is How to pass e-mail id to RECIPIENT(To:) column in Email Box.thanks for your reply
i 'm doing what exactly you mention here .
my problem here is
i have 15 columns
i am executing a query based on the values of the column(column name) in the target page
1)here i am passing(all) the column values to the next page-but i want to pass only one column values(column name)
when i click on any cell of that column
OR
2)i can pass all column name to target page -there(in the target page) i can filter out
i think option 1 would good if you filter out the unwanted columns
Regards
Amul -
How to pass dynamic selection to logical databse using ldb_process function
dear friends,
can anybode tell me how to pass dynamic selection to the logical database when i m using LDB_PROCESS function module. however, in EXPRESSIONS paramter of the function module i m passing the selecti-option, it is passing their also but when i used more than two select-option or paramter it throw an exception FREE_SELECTIONS_ERROR.
SO PLEASE GUIDE ME HOW TO PASS MORE THAN TWO SELECT-OPTION IN LOGICAL DATANSE DYNAMICALLY USING LDB_PROCESS.would be nice if you post the answer to all
-
HOW TO PASS A PARAMETER TO UIX PAGE FROM APPS' FUNCTIONS FORM?
Hello,
We created a form function (in Sys Admin resp) for a UIX page. The Type field
is 'SSWA plsql function that opens a new window (Kiosk Mode)'. The HTML Call
field is 'POBarCode.uix'.
We have to pass the username (who logs in) to the UIX page. If we pass it
literaly, (e.g. POBarCode.uix?MyParam1=BBASTIN), it works. We tried following
two options to pass it as a variable in HTML Call field:
POBarCode.uix?MyParam1=fnd_profile.value('USER_ID')
POBarCode.uix?MyParam1=$PROFILE$.USERNAME
Both variable show up as is in the UIX page. How can we pass the username as a
variable on tHe HTML Call?
Thanks, Ali.Hi guojun yu,
As per my understanding, you use parameters related to country and office UI langs as search condition in the report, you want to provide part of countries/office UI langs values as values of parameter, then all records will be displayed in the report.
In Reporting Services, parameters are used to filter data, after we selected values of parameter and preview the report, only data meets search condition will be displayed in the report. To display all records in the report, we need to use all values of
countries/office UI langs as values of parameter. For detail information, please refer to the following steps:
1. Create separate dataset for each parameter with the query like below:
Select distinct CountryRegion from TableName
2. In design mode, right-click Parameters and click Add Parameter.
3. In Parameter Properties dialog box, in name and prompt text box, type CountryRegion. Select Allow multiple values.
4. Click Available Values in left pane, select Get values from a query, select dataset from drop down list, select CountryRegion from Value field and Label field drop down list.
5. Create parameter @OfficeUiLang, @OsLocale, @IsMobile like step1 to 4 above.
6. Modify the stored procedure used to retrieve data for the report like below:
SELECT *
FROM AggregateDataByDate AllSessions
WHERE UserID != 'NULL'
AND CountryRegion in @CountryRegion
AND OfficeUiLang in @OfficeUiLang
AND OsLocale in @OsLocale
AND IsMobile in @IsMobile
AND [UsageDate] >= @DataCutOffDate
For detail information about Adding a multi-value parameter to a Report, please refer to the following document:
https://msdn.microsoft.com/en-us/library/dn385719%28v=sql.110%29.aspx?f=255&MSPPError=-2147217396
If you have any more questions, please feel free to ask.
Thanks,
Wendy Fu
Wendy Fu
TechNet Community Support -
How i pass table column value to string variable or return to java applete
Hi Master,
How do I pass a table column value into string variable. See my code below:
import java.sql.*;
public class Waheed {
public Waheed() {
public static void main (String args [])
String s = "9 23 45.4 56.7";
System.out.println ("going for connection");
// DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
try{
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection conn =
DriverManager.getConnection("jdbc:oracle:thin:@fahim:1521:aamir","muhammad","mfa786");
Statement stmt = conn.createStatement();
ResultSet rset = stmt.executeQuery("select accid from accbal");
System.out.println ("going for connection");
while (rset.next())
s= rset.getString("accid"); this line give me error
System.out.println (rset.getString("accid"));
System.out.println (s);
catch(Exception e){
e.printStackTrace();
This line give me an error:
s= rset.getString("accid");
s is string variable
Plese give me an idea how I can pass accid in s variable.
Thanks.
AamirSee the code sample in the following thread (try using upeercase).
JDBC connection
Kuassi -
How to pass custom column value that is created in Answers to its detail report
Hi,
I have a custom column (in the below ex: 'Aging') which is calculated based on prompt date and arrived at the below aging buckets. I have a drill report from 'Balance' column. When I click on 100/200/125 corresponding 'Aging' value should be passed to the detail report.
Aging
Balance
0-30 days
100
31-60 days
200
61-90 days
125
Tried putting the 'Aging' formula in detail report and make it 'is prompted' - no luck.
Is creating the logic in RPD with a request variable (to pass prompt date) only option to solve this? Any suggestions?
Thanks in advance and a very happy new year.Finally, we used a request variable and handled this in RPD.
-
How to pass report column value
I'm trying to implement a AJAX report pull from one of the response on this forum. The report column calls the following javascript function below. The #COL2# values are dotted values like 10.2.3.5.6. The function passes values correctly passed if the values are without special characters. I tried to put the value 10.2.3.5.6 in escape(10.2.3.5.6), but didn't work. Any ideas to pass this value in javascript encode/decode way is appreciated.
javascript:GetReport(#COL02#)
thanks,
SuryaHello Surya,
>> I have put an example on APEX site …
This is indeed the best and fastest way to get help.
>> but the third version value "1.2.3" fails to display …
String parameters should be encapsulated with single/double quote signs.
Your first two rows could have been considered as numbers, so the systems let them pass. The third one – 1.2.3 – is not a number, but you didn’t mark it as a string.
I changed your code to the following:
javascript:GetReport_r1('#COL01#');And now it’s working as you need.
General remark: I saw in your report page that you are using the “Generic Column Names”. Just so you know, this not is the optimal choice. If you don't have to use it, you should use the first option of “Query Specific Column name”. If you have to use generic columns, try to minimize the number as close as you can to the real number of columns, and not just to default of 60.
Regards,
Arie. -
How to Pass APP_USER to a database trigger for auditing
I have a table which is updated by an Apex Page. (Application Express 4.2.1.00.08).
The application is using the standard Oracle apex authentication.
I have created an Audit table with a before update trigger to insert a record into the audit table of who made a change to what column and when.
If I use User in the trigger I get APEX_PUBLIC_USER recorded as who changed the record.
What I actually need is the APP_USER Value e.g KJR recorded. I am not writing the APP_USER to a field in the table so I cannot use : new syntax to capture it from any of the field I am updating.
Can anyone advise how I can pass the APP_USER for the trigger to use?In PL/SQL code like Trigger you can access the value of item by using v function. Refer the below link
http://docs.oracle.com/cd/E1755601/doc/user.40/e15517/concept.htm#BEICHBBG_
You can use NVL function as well,
:NEW.CREATED_BY := NVL(v('APP_USER'), USER);Thanks,
Lakshmi -
How to pass value to pop up window using javascript function?
I am not sure how to do this, I want to open new window from existing form,This is Mod/PLsql for consists some javascript functions also. When I am clicking on new window in form then new form should open with results of value entered,but new window form is opening with main page :( , not able to get text box value from parent form. How to call textbox input value in popup window from parent window using javascript?
currently I'm using following code:
HTP.p('<script type="text/javascript">
function pop_up5()
var l_url=window.opener.document.getElementById("p_single_store_pc").value;
window.open(l_url, '''', ''fullscreen=no, scrollbars=1'');
</script>' );
Edited by: user11970612 on Jun 14, 2012 5:02 AMthis is probably due to the Javascript code and not a "real link" to another page... I don't know if the null is due to the Javascript...
But if you really really want to use javascript instead of a ... you can pass the location of the url with JSP (on your main page) as a parameter to the open window... (...) u can put instead of main.jsp <%= request.getServerName()+request.getRequestURI() %>
the value <%= ... %> will return something like test.com/html/main.jsp
Hope this helps. -
How to pass value to some view parameters for a nested combo, on load ? 11g
Hi, I have a requirement for to do two combos, in a master-detail relationship.
The first one it's a very simple combo, a simple query in DB, so far so good. The second one depends on first and depends either from the username, that I get from a Payload binding (two parameters in where clause).
In the first activity on my flow it's work very well. The user chooses the "idMaster", a valueChangeListener event runs an ExecuteWithParams OperationBinding and fills up the nested combo.
But, I've tried in some many ways to fill both combos and bring in their previously selected values, in the next task, but until now I'm not able to do that. I believe that I have to, somehow, call ExecuteWithParams before setting the defaut value. It's this the correct approach ? I tried it on managed bean constructor, but it not works.
So, how can I call a VO, passing parameters values into it, fill this nested combo, and set this pre-selected value, before pages load?
Any ideias?
Thanks.Continue here
-
How to make a column as read only for update integrator.
Hi All,
i came across one issue while creating integrator.
for update integrator i have column rowid.rowid is a parameter. by using this(rowid) i'am updating.i want to make rowid column as read only .
if i enable read only for rowid,then it is passing null as parameter and inserting new row instead of updating the row.
If any one came across this problem you can help me in fixing this issue.Hi Sanket,
Thanks for reply.
i have created a dummy column and passed the value of the orginal column values to dummy cloumn. and hided the orginal column.
in this process i have come across same issue. it is not passing the value as parameter and instead of updating the row it is inserting an new row.
Any alternate for this scenario.
Thanks in advance. -
How to get list of parameters or arguments for a stored procedure
Hi,
Is there a way we can get the list of arguments or parameters for a stored procedure through Data Dictionary?
I mean the way oracle has Meta Data tables like user_tables/dba_tables, user_triggers/dba_triggers through which we can get information about tables, triggers etc, in the same way is there a way in oracle so that we can get information about a procedure like what kind of arguments need to be passed, are they IN or OUT parameters, and what is their Data Types?
I could find there is one View dba_procedures, but it does not give any information about the arguments a procedure takes.
Thanks,
Makrand
Thanskor
SQL> desc Raisesal ;
PROCEDURE Raisesal
Argument Name Type In/Out Default?
ID NUMBER(4) IN
PERCENT NUMBER IN -
How to tell if column value has changed for use in workflow actions
Hello,
I am using Sharepoint 2010 and for one of my Lists, I am using a general list workflow. What I need to be able to do is determine if a column value has change (say an "Assigned To" field) because I only want to take some action if that particular
value has changed. I want to be able to have a workflow action that would be something like:
If Current Item: Assigned To not equals [OLD VALUE]
I have found some web searches that talk about creating a duplicate list or duplicate (but hidden) column but that doesn't seem to be the way to go. I have document versioning set but don't if that can be used to help with this. One possible
thought (although I haven't tried it to see if it works) is to create local variables and have the values in the variables be the "old value". Just not sure if there is a best practices for doing this.
Thanks for any thoughts - PeterHelen,
Not sure I fully understand your goal. We don't use "tasks" at all but if you are looking to have your workflow check certain valus and be able to send email messages to people based on whatever, then you can certainly do that (as long as your Sharepoint
has the email setup. We do this for alot of workflow tasks.
So, in the workflow you can have a blanket statement like what I previously listed:
if Current Item:hiddenStatus not equals Current Item:Status
.... do something
or you can do something like:
if Current Item:hiddenStatus equals "In-Progress"
.... do something
Else if Current Item:hiddenStatus equals "Completed"
.... do something
or combine the two and do nested "if" statements. Then you add an email statement wherever you need it like:
if Current Item:hiddenStatus equals "Completed"
then email "these users"
To add the email part, just type in "email" on the line where you want to add a statment. There is only one option to choose from. That will display the line "then email these users". The "these users" will be a link. When you
click it you will get a popup to add the email info. We typically will send the email to a user (or users) that are already listed in one of the PeoplePicker fields. On the email form, you can type in your own text, designate that a value is based
on a column value (like our PeoplePicker), designate that a value is based on a workflow variable, add a link to the current item, etc. To get to these options you will click the button to the right of the fields or use the "Add or Change Lookup" button
in the bottom-left for the text area. There is alot you can set in the mail.
Does this help answer your question?
- Peter
Maybe you are looking for
-
Weather icon should show current weather
if they can have the Calendar icon show the current date and day, they need to have the Weather icon show the current temp and weather.
-
Apple wireless keyboard no longer working with boot camp Windows 7
Hi, I've had Boot Camp installed for about half a year now with no problems. Yesterday my wireless keyboard stopped working with it, it also appears that bluetooth isn't in the device manager or in the control panel, it could no linger detect either
-
Photo Share by Email Resolution
How do I share the full resolution image by email? It ends up at 1632x918
-
I've tried rewplacing .plst files, reinstalling the 10.5 and running 10.5.8 combo updates, gone line by line thru user prefs comparing to my working laptop using the same software, but nothing works. What I have noticed is that on my working OS10.5.8
-
Hi Is there a way to transfer pictures and videos I took on my iphone5s to a sandisk flashdrive on my Acer laptop? Thanks foryour help