Dynamically by passing the values in the columns
Hi all
I'm trying a pl/sql block that take a string and execute it dynamically. Suppose that here is the string
M_COL: = Q' [(Code_P = > ': DEPTNO', P_CODE_TYPE = > "ÉTAT")]';
Now try to run. using below
M_STR: = 'SELECT CHK_DEPT ' | M_COL | ' FROM EMP WHERE EMPNO = "7499" ';
RUN IMMEDIATELY M_STR
IN M_DATE;
Now what I want is M_STR vairable executed as
SELECT CHK_DEPT (Code_P = > DEPTNO, P_CODE_TYPE = > 'STATE') FROM EMP WHERE EMPNO = '7499'
Instead of
SELECT CHK_DEPT (Code_P = > 'DEPTNO', P_CODE_TYPE = > 'STATE') FROM EMP WHERE EMPNO = '7499'
another other way in the Code_P column DEPTNO value parameter must be passed. Also note that the DEPTNO column in the M_COL string is Dynamic.i.e
M_COL: = Q' [(Code_P = > ': DEPTID', P_CODE_TYPE = > "ÉTAT")]'; OR
M_COL: = Q' [(Code_P = > ': EMP_ID', P_CODE_TYPE = > "ÉTAT")]';
Any suggestions, please share with me.
And also, please don't bother much about the data and the output of function. If I get a way to pass the value of the column in function, my problem is solved.
Tags: Database
Similar Questions
-
Dynamic component in the column of the Table
JDev 11.1.1.6
Can someone give me advice on how to change the component used by a column of table during execution?
Basically, I want to have a text on column B entry, when the value of the output on column A is in a list of strings.
If not, I want to have an image on column B.
Here's the long-winded scenerio:I have a table with 2 columns (column A and column B).
Column A is an OutputText.
Column B is an InputText.
The user is only allowed to enter the data in column B, when A column is 'A', 'B' or 'C '.
If column A is different from 'A', 'B' or 'C', I would like to display an image in the column B which warns the user that they may not enter data in this field.
I tried to make the InputText read-only, but that doesn't look very good.
Any help would be appreciated.
Ray
You can add the image component in the same column and use property on af:inputText and af:image to show/hide made them.
Dario
-
Region of the column in a report
Request Express 3.1.0
I have a region of report that is displayed on a page with 3 columns. The middle column will be the longest and I want to go to this column. I've read other posts on the forum about it, though, it doesn't seem to work.
Also is it possible to truncate the display of the output to the user? The column is a varchar2 (4000) and if all the information is filled, the display on the screen would not look professional.Hello
Access from this column should be ok, if you were to build the link here as well - replace the second #comments # with:
<a href="f?p=&APP_ID.:1:&SESSION.::::P1_ITEMNAME:#LINKFIELD#">#comments#</a>
1 = page number creates a branch to
P1_ITEMNAME = the item on this page to pass a value in
#LINKFIELD # = column in this report that contains the value to passAndy
-
How to pass the value of a column to a variable to be used in another analysis
Hello
I'm on OBIEE 11.1.1.7.1.
I have the following problem.
I have DISCOVERED called analysis. It has just a column with the result. Simple. Assume that the answer is 2500
I have another scan which has two other columns, namely GOLD and LOANS. I want to calculate the total DISCOVERED + GOLD + READY.
That's why I need to pass the value of 2500 of the first analysis of the second analysis via a variable.
I can not add all three of them in the same analysis there are various filters for OVERDRAFT, and the application of these filters on the GOLD and LOANS gives the desired result. I tried to add filters in the column of the overdraft, but that doesn't seem to work.
Any help will be greatly appreciated.
I'll give you an example. I hope that you will mark for my time...
Hope that you will be aware of how to combine a similar request.
in the first criterion you have
Goldprice Loanamount year 0
Second criterion
Year 0 0 Overdraftamount
the two maintain the necessary filters.
Add a column of result (option you can see in the topic area pane) that add all three columns. You can choose the columns. formula will come something like below
saw_1 + saw_2 + saw_3
Thank you
AJ
-
Access the value of text column header inside the loop forEach to a dynamic table: ADF 11 g
JDeveloper: 11.1.2.1.0
We have a requirement in which a dynamic array must be created. We are able to create the table. But we need the values for the dynamic to be columns the same as the name of the column.
We have written the following code. Column header is is filled correctly. But the outputText (i.e. the column values for each row are coming as null.
< af:forEach items = "#{backingBeanScope.backing_ReportsInterfaceBean.tableList}" var = "dynamicColumn" > "
< af:column sortable = "false" headerText = "#{dynamicColumn}" id = "c3dwd" >
< af:outputText value = "#{dynamicColumn}" id = "aot1" > < / af:outputText >
< / af:column >
< / af:forEach >
We are stuck
Emergency aid is much appreciated!
Hi Ashish,
Its a dynamic array. We had to access the column header.
I've solved through hit and trial. If I change the bean has been prominently worn rather than extensive backup of bean, it works. I don't know what is the reason for this, but now it works.
Thank you all.
-
passing multiple values of the column to a variable in unix
sqlplus -s $USER_ID@$SID/$PWD<<EOF>sql_1.txt set feedback off set heading off select 114032 as c_1 from dual ; EOF for i in `cat sql_1.txt` do sh script_1.sh $i
Currently I am passing a column value to the single unix variable.
How can I pass values of 2 columns
sqlplus -s $USER_ID@$SID/$PWD<<EOF>sql_1.txt set feedback off set heading off select 114032 as c_1 ,sysdate c_2 from dual ; EOF sh script_1.sh $col_1_value $col_2_value
I'm on SUNOS
You can concatenate the columns in SQL by a delimiter, and then use the cut (for example) under Unix to analyze the production line in chips for the script.
-
Two tables provided, how you retrieve the values in two columns using values in a column (the pass get values. If col. A is not null values and get the pass. B if col. A is null)?
Guessing
Select nvl (x.col_a, y.col_b) the_column
from table_1 x,.
table_2 y
where x.pk = y.pk
Concerning
Etbin
-
Dynamic alignment of the value of element column and report page
Hi friends,
I have an interactive report that contains the columns as
< li > empno
< li > name
In the light of the foregoing, I 'empno' with an alignment of the left column and a 'name' with an alignment of the left column.
It is possible to substitute the alignment of the data that we put into the report according to the value of the application as element
If my application point is about US, so I need the alignment of the column 'empno' and 'Name' to the left, and if the value of point of my app's AR, I need the alignment of the column 'empno' and 'Name' to be right. What is possible to achieve dynamic alignment for the report data to two columns 'empno' and 'Name', according to the value of application page element.
And also, in the case of the page element, I have a page element with a name of P1_NAME in which he has an alignment of the Horizontal/Vertical element on the left.
I need to this alignment of the element of the page element behave dynamically according to the order of the day of the application page, as if the order of the day of the application page called WE then the alignment of the element of the page item must be left and if the order of the day of the application page called AR and then the alignment of the element of the page element has to be right.
Is it possible to make some friends of my scenario two above. Kindly help me with this.
Thanks in advance.
Brgds,
MiniHey Mini,
To change the alignment on the fly, you need a change in your IR and javascript.
First change the columns that you want to change the alignment for. Add the following code in The HTML Expression in the column formatting part. (Detail of the column)
#HERE _THE_COLUMN_NAME#
Then you can change the easy alignment for these areas with the following code
$(".align_style").css("text-align","left")
This can be in a DA, or just on the loading of the page.
Kind regards
Kees Vlek
-----
Company: http://www.orcado.nl
Blog: http://www.orcado.nl/blog/blogger/listings/69-kvlek
Twitter: http://www.twitter.com/skier66
If the answer to question please change replied and mark the appropriate post as correct / helpful.Published by: kvlek on 7-mei-2013 14:47
-
passing two values in a guest column for the display and filtering
Hi all
Is there a workaround solution to use two columns in a command prompt to display and the passage of the input for a prompt value in dashboard prompt value? For example we want to display the description in the command prompt, but pass the variable value or the presentation of the filter id, just as we have in bi publisher, LOV automatically enter the value both for the display and the actual value to pass to the query. Therefore, the user clicks the description and corresponding id will be stored in the variable presentation of the guest of.
Thank you
Sushil
Published by: 872073 on April 5, 2013 11:06Check this box
http://www.rittmanmead.com/2010/08/Oracle-BI-EE-11g-handling-double-columns-iddescription-interoperability/ -
How to pass the value of DocTitle in IDOCSCRIPT dynamically?
Hello
Can someone please tell me how to pass value dynamically (I mean dDocTitle value) in IDOCScript to fetch a particular file.
Concerning
REDAHow to display the CSST? Link you to it somehow? If so, you can pass a variable name in the URL and the name of this variable will be available in the Idoc Script.
Jonathan
http://jonathanhult.com -
By passing the value in column IR to package Oracle
All,
I try to call a package Oracle of APEX and must pass the value of a column of IR in this packaging. I tried saying: ADJ_ID but I don't think his pasing anything for the backend.
Here are the steps.
1. the user runs IR
2. There is a column that I put as "ROLLBACK" on this report for each line that has a LINK that calls URLS like
JavaScript:apex.confirm (' safe to restore adaptation? "," SEND");
3. once the user confirms submit, I call the package, package gets called but I want to send a value for that line to the package, I do this by saying: (colon) rating but it does not work.
Thank you
VishalYou must set you page item (as you try to pass by using the method of colon in PLSQL) first
You can change your link to
* JavaScript:apex.confirm ("Sure to restore adaptation?", {request: 'SUBMIT', value: {"P1_ROW_VALUE": 10}}); *
P1_ROW_VALUE is the Page element that you want to set and 10 here is specific to the LINE value
If you use the "links" section in the report attributes
and then, something like that would* JavaScript:apex.confirm ('Safe to restore the fit?', {request: "SUBMIT", value: {'P1_ROW_VALUE': ' #COLUMN_ALIAS #'}}); *
Alias_de_colonne is the name of the column you want to set the element with the value.
Published by: 814948 on November 23, 2010 08:46
-
dynamically display title based on the value selected in the column picker
Hi all
Would it be possible to display the title of the dynamic report based on the value selected in the column picker. Suppose I have two State of the column and region. When I choose the status in the column picker the title of the report will show 'Summary of the situation' when I'll choose the region then the title will change to "summary of the region. Please help me...Hello
Check your mail before I send the entire process with screenshots.
Concerning
NGO
-
By using the link in the column to pass column values
Hello
I have a link to the column in my report which opens a modal page, now I want to use the value of the column clicked in the page that opens.
I don't want to put any article on the opening page of the column value of click rather I want to use the value of the column of the click in my sql query.
for example:
1 P1 has the report < column link by clicking on it opens P2 >
2. on page 2, I want to use the value of the clicked column.
So far, I did
1 link to page 2
2. ask - #column_value_clicked #.
3. in the sql query, I use the same above in the where clause.
Any help...
Thank you
Rakesh
fac586 wrote:
Sunil Bhatia wrote:
Hi Rakesh,
Make use of x 01 parameter included in apex 5.0
You can create a URL to page 1 as:
f? p = 103:1:3241341234123: & x 01: #column_value_clicked #.
Make use on request P2 in the form:
Select * from test_table where id = APEX_APPLICATION. G_X01;
You have not tested who, did you?
I tested it buddy.
Link https://apex.oracle.com/pls/apex/f?p=56971
Click any bar chart and then wait that he freshen up.
Click on report of ENAME and see that he went through the parameter.
Report URL: f? p = 56971:2: & APP_SESSION. : No.: & x 01 = #ENAME #.
-Sunil Bhatia
-
How to dynamically change the value of a column in a report
Hi, I'm new to APEX and I have a small requirement. I have a report in a page which I query. Report will always have only one record. I need to change a value of a column in this report of the value received from another page. I was able to send the value of another page on my page of reports to a hidden page element, but I don't know how I can configure this value received to this column in the report. Is this possible? If Yes, can anyone help with this?
970829 wrote:
Please update your forum profile with a real handle instead of '970829 '.
Hi, I'm new to APEX and I have a small requirement. I have a report in a page which I query. Report will always have only one record. I need to change a value of a column in this report of the value received from another page. I was able to send the value of another page on my page of reports to a hidden page element, but I don't know how I can configure this value received to this column in the report. Is this possible? If Yes, can anyone help with this?
Not really clear exactly what it is you are trying to reach. You want to replace the value of a column in the report with the value of a page element? If so, simply replace the column in the report with a reference to the required page elementquery:
select empno , ename , job , :p2_sal sal -- Replace value of sal column with value of P2_SAL item from emp
-
Issue by passing the value of the link in the column
Hello.
Starting with a simple question, I hope. !!
I finished the examples supplied by oracle 2 day tutorial, but I can't make it work values between pages.
Here's what I did.
I created a page of report interactive (2). In the region of origin, I have the following SQL statement
Select PUPIL_NAME, class
of T_PUPILS
where CLASS = 'P '.
order of PUPIL_NAME
In the State of the page attribute section, I created a link in the column on the PUPIL_NAME column.
In the section "links" column, I put the following
Target = this Application Page
Page = 7 (this is the page I want to)
Clear Cache = 7, CIR
Name = IR_PUPIL_NAME
Value = #PUPIL_NAME #.
I created page 7 in a report. In the source page 7 region, I have the following SQL code
Select PUPIL_NAME,
JOIN_DATE,
HOME_ROOM,
HOME_FLOOR,
HOME_TEACHER
RESULT
of T_PUPIL_INFO
where PUPIL_NAME =: IR_PUPIL_NAME;
When I run the application and go to page 2, I get a list of students and their class. When I select one of the names of the student, the application moves on page 7, but instead to list information for that student, he simply says no data found.
In the URL of page 7, I can see that the: IR_PUPIL_NAME has the value of the student, I chose, but it doesn't seem to use it in the SQL statement.
Any help would be appreciated.Hello
You can try this.
Go to page 7, then on the right, click the report area and select Create page element. Type the name P7_PUPIL_NAME and deposited item text.
Change your report query page 7 as
Select PUPIL_NAME,
JOIN_DATE,
HOME_ROOM,
HOME_FLOOR,
HOME_TEACHER
RESULT
of T_PUPIL_INFO
where PUPIL_NAME = NVL (: P7_PUPIL_NAME, PUPIL_NAME);On Page 2 changing the link set the P7_PUPIL_NAME element with the value #PUPIL_NAME #.
Clear Cache 7.Run the 2 page now and click the link
Thank you
Mehabub
Maybe you are looking for
-
Before this version of Firefox 36.0.1, the < textarea > HTML worked in my forms. View Cart returns. In the version of 36.0.1 that they no longer work correctly. However, when I enter a carriage return, it displays a space instead of a line break. I w
-
Can not save on iCloud on my new iPad Pro
I can't save on iCloud on my ipad new pro
-
No video picture when the connection by Satellite 2410 to TV
I have a 2410 satellite that has taken video - RCA-type.But when I connect to video in on my TV there is no picture but its OK use the headphone jack.Can someone help me please
-
paviilion m9643it: hp pavilion m9643it is sata1 or sata2?
Hello all, I would like to add an SSD sata3 (600Mb\s) samsung to my former lodge of m9643it pc, which brings together the following motherboards: ASUS IPIBL-LB (Benicia), this motherboard supports SATA1 or SATA2 even? And if only supports SATA1, how
-
How can I get a new tag that displays information from computers at the bottom of my laptop?
I took the sticker that comes at the bottom, how do I get a new one?