Get the value of the column of the report to a variable
HelloI have a static report that fills the data in a non editable view. I added an extra field in the page, but without a column in the view. Initially, the new column will display all the data, but user has an option to enter any number on each line. This user has entered a value I need to assign to a variable.
How can I get that value to a variable?
Kind regards
Prasanth
Open page source/inspect with firebug, the editable column and find the name of the editable field (entry =... name = "fxx" id). It should be of the form fxx * where x can be from 01 to 50.
This is a table that will have as many number of items that there are lines in this report page (one for each column of each row)
I don't know how you plan to use this value as is not a variable, but rather a single value for each line?
If you want such EI (i.e. ith line value) would be available in
APEX_APPLICATION. G_Fxx (i)
replace xx by the real number
Tags: Database
Similar Questions
-
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
-
Hi all,
I need to get the report equipmentwise monthwise. Our application is used by the JCB rental company. If they want to profit each JCB monthwise.
We are capturing the date range of which JCB is engaged. Here is my table structure. How to use the function of pivot or case to get this result
ph_timesheet_details / / DESC
Name of Type Null
------------------- -------- -------------
ID NOT NULL NUMBER
TSHDR_ID NOT NULL NUMBER
NUMBER OF LINE_NO
LINE_TYPE NOT NULL VARCHAR2 (1)
NUMBER of EQUIP_ID - it is the need for material to use for the collection
NUMBER OF ACC_ID
NUMBER OF OPERATOR_ID
From_date DATE - JCB engaged since
To_date DATE - JCB engaed in
NUMBER OF NO_OF_DAYS
NUMBER OF CONT_HOURS
ACT_HOURS NUMBER - these hours must be sum for every month equipmentwise
RATE_PER_HOUR NUMBER (14.3)
LINE_VALUE NUMBER (14.3)
NUMBER OF OT_HOURS
REMARKS VARCHAR2 (255)
RECORD_CREATED_USER VARCHAR2 (50)
DATE OF RECORD_CREATED_DATE
LAST_MOD_USER VARCHAR2 (50)
DATE OF LAST_MOD_DATE
I need output like this
jan Feb mar Apr... equipment dec
********************************************************************
equip1 200 h... 100 h
.
.
.
equip the xx 500 h... 300hrs
Hello
This with the assumption that you treat the lines where min (from_date) and max (to_date) are in the same year, and I don't consider fractions of day and all the days are considered as (holidays, weekends, etc.):
with rng_dates as ( select min(trunc(from_date)) min_dt , max(trunc(to_Date)) max_dt from ph_timesheet_details where from_date >= to_date('01.01.2015', 'dd.mm.yyyy') and to_date < to_date('01.01.2016', 'dd.mm.yyyy') ) , got_dt_list as ( select min_dt + level -1 dt from rng_dates connect by min_dt + level -1 <= max_dt ) select td.equip_id , sum( case when extract(month from dl.dt) = 1 then td.act_hours / (trunc(to_date) - trunc(from_date) + 1) end ) jan , sum( case when extract(month from dl.dt) = 2 then td.act_hours / (trunc(to_date) - trunc(from_date) + 1) end ) feb , sum( case when extract(month from dl.dt) = 3 then td.act_hours / (trunc(to_date) - trunc(from_date) + 1) end ) mar , sum( case when extract(month from dl.dt) = 4 then td.act_hours / (trunc(to_date) - trunc(from_date) + 1) end ) apr , sum( case when extract(month from dl.dt) = 5 then td.act_hours / (trunc(to_date) - trunc(from_date) + 1) end ) may , sum( case when extract(month from dl.dt) = 6 then td.act_hours / (trunc(to_date) - trunc(from_date) + 1) end ) jun , sum( case when extract(month from dl.dt) = 7 then td.act_hours / (trunc(to_date) - trunc(from_date) + 1) end ) jul , sum( case when extract(month from dl.dt) = 8 then td.act_hours / (trunc(to_date) - trunc(from_date) + 1) end ) aug , sum( case when extract(month from dl.dt) = 9 then td.act_hours / (trunc(to_date) - trunc(from_date) + 1) end ) sep , sum( case when extract(month from dl.dt) = 10 then td.act_hours / (trunc(to_date) - trunc(from_date) + 1) end ) oct , sum( case when extract(month from dl.dt) = 11 then td.act_hours / (trunc(to_date) - trunc(from_date) + 1) end ) nov , sum( case when extract(month from dl.dt) = 11 then td.act_hours / (trunc(to_date) - trunc(from_date) + 1) end ) dec from ph_timesheet_details td join got_dt_list dl on dl.dt >= trunc(from_date) and dl.dt <= trunc(to_date) where from_date >= to_date('01.01.2015', 'dd.mm.yyyy') and to_date < to_date('01.01.2016', 'dd.mm.yyyy') group by td.equip_id; EQUIP_ID JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DEC ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- 14 80 81 230 80 119 220 90 75 240 8 74 20 93 136 92 176 72 7 rows selected.
Kind regards.
Alberto
-
Need to get the report of last hour in ot txt CSV cluster
Hi all
Thanks in advance,
I work for a script where I need to get the information from vms that was revived by HA during the restart of the host.
or if we can get the report of last hour in csv or txt file cluster we can extract and find out how many virtual machines has been migirated to another host for host restarts.
Please advice.
SIV
Try the following, this will give you all the VMS who have been restarted and the time when it happened.
Connect-VIServer -Server yourserver $start = (Get-Date).AddDays(-5) Get-VIEvent -MaxSamples 1000000 -Start $start -Type warning | Where {$_.FullFormattedMessage -Match "vSphere HA restarted"} | Select ObjectName, CreatedTime, FullFormattedMessage Disconnect-VIServer -Confirm:$false
-
Get the names of cluster variables
I have a cluster with a number of numeric variables that are grouped by names. The names and their associated values are now to provide a header of PDM-file via the "TDMS Set Properties" VI. This VI requires the names and values to be separated in the entries of "Property values" and "property names. My question is how to get the names of variables out of the cluster of an array of strings?
I hope that there will be a nice solution for this but I have not found it.
The 'Get Array cluster names' suggestion of the community seem to be adsvanced?
Based on the suggestion of OpenG , here is an excerpt:
Tone
-
Get the latest data of Variable shared before disconnecting from the network
Hello.
I use Shared - published network variables for my communication between two PC's. Each LV software will pass the data to another.
Sometimes the wireless connection to become really bad and the network connection stops.
I want to get the latest data. Currently my VI will show the value '0' on the variable shared data once the connection is cut.
I tried using shift, but she registers the same results.
Can someone show me how I can stay past data when the network connection is disconnected.
Thank you very much.
Kind regards
Hello Fan, Ravens
It works! Thank you very much.
Kind regards
-
Getting the error for bind variables
Hello Experts;
SQL > DECLARE
2 l_eid number;
3 l_name varchar2 (30);
4 BEGIN
l_eid 5: = 1000;
6 select name from l_name tab1 where it = l_eid;
7 l_eid: = 9999;
8 select name from l_name tab1 where it = l_eid;
9 l_eid: = 299999.
10 select name from l_name tab1 where it = l_eid;
11 * END;
/
PL/SQL procedure successfully completed.
When you create variable bind I get the error message:
SQL > variable number b1;
SQL > exec: b1: ='select name from which no = tab1: b1';
START: b1: ='select name from which no = tab1: b1'; END;
* ERROR at line 1:
ORA-06502: PL/SQL: digital or value error: character of number conversion error
ORA-06512: at line 1
If you want to use variable bind you:
number variable b1
VARCHAR2 (30) variable b2
exec: b1: = 1000;
Start
Select name
in: b2
of tab1
where = none: b1;
end;
/
print: b2
For example:
SQL > variable b1 number
SQL > b2 variable varchar2 (30)
SQL > exec: b1: = 7839;PL/SQL procedure successfully completed.
SQL > start
2. Select ename
3 in: b2
4 of PEM
5 where empno =: b1;
6 end;
7.PL/SQL procedure successfully completed.
SQL > print: b2
B2
--------------------------------
KINGSQL >
SY.
-
How can I get the sum of my variables and display the total?
I wrote on a quiz and have each button by setting a variable, example: http://www.kreativitydesigns.com/Clients/Globus/Monograms/MBA_Test/deliverables/MBA_Quiz.h tml? mode = preview
However, when it hits the frame of "Rank" to calculate and display the total, it does not appear.
I do not have the text box named "Grade" on stage and variables have all received a value before entering this framework
Here is the code used to calcualte and output the result:
get the value of a variable and store
var FinalScoreHolder is q1 + q2 + q3 + q4 + q5 + q6 + q7 + q8 + q9 + q10 + q11 + q12 + q13 + q14 + q15 + q16 + q17 + q18 + q19 + q20 + q21 + q22 + q23 + q24 + q25 + q26 + q27 + q28 + q29 + q30 + q31 + q32 + q33 + q34 + q35 + q36 + q37 + q38 + q40 + q39;.
View rank
SYM. $("Grade") .html ("you scored" + FinalScoreHolder + "%");
See the result Page
If (FinalScoreHolder > = 89) {}
read the chronology of the given position (ms or label)
SYM. Play ("Pass");
} else {}
read the chronology of the given position (ms or label)
SYM. Play ("fail");
}
Any help would be greatly appreciated.
Thank you!
Your code is fine, but it seems that he can not do the values of your questions because if you put the values as below I get the expected result.
Q1 = 20;
Q2 = 63;
Q3 = 12;
get the value of a variable and store
var FinalScoreHolder = q1 + q2 + q3;
View rank
SYM. $("grade") .html ("you scored" + FinalScoreHolder + "%");
See the result Page
If (FinalScoreHolder > = 89) {}
read the chronology of the given position (ms or label)
SYM. Play ("Pass");
} else {}
read the chronology of the given position (ms or label)
SYM. Play ("fail");
}
-
How to get the report for the set items
I created an element defined for all payments that are made to the employee. Now I would that these elements that are there in the element the value to display in a separate report and not in my payslip. How can I do this? Please can you tell me the names of the tables where I can get the required data?
Appreciate all your help!Try this query
SELECT ppf.employee_number "Employee Number", petf.element_name "Element Name", to_number(prrv.result_value) "Amount" FROM per_all_people_f ppf, per_all_assignments_f paf, pay_element_types_f petf, pay_assignment_actions paa, pay_payroll_actions ppa, pay_input_values_f pivf, pay_run_results prr, pay_run_result_values prrv, pay_element_type_rules petr, pay_element_sets pes WHERE ppf.person_id = paf.person_id AND petf.element_type_id = prr.element_type_id AND pes.element_set_id = petr.element_set_id AND pes.element_set_name = :Element_Set_Name AND petr.include_or_exclude = 'I' AND petf.element_type_id = petr.element_type_id AND paf.assignment_id = paa.assignment_id AND ppa.payroll_id = paf.payroll_id AND paa.payroll_action_id = ppa.payroll_action_id AND ((:pmon IS NULL AND :pyear IS NULL) OR TO_CHAR(ppa.date_earned,'MONYYYY') = TO_CHAR(UPPER(:pmon)||:pyear)) AND paa.assignment_action_id = prr.assignment_action_id AND prr.run_result_id = prrv.run_result_id AND pivf.element_type_id = petf.element_type_id AND prr.element_type_id = petf.element_type_id AND pivf.input_value_id = prrv.input_value_id AND ppa.effective_date BETWEEN petf.effective_start_date AND petf.effective_end_date AND ppa.effective_date BETWEEN pivf.effective_start_date AND pivf.effective_end_date AND ppa.effective_date BETWEEN paf.effective_start_date AND paf.effective_end_date AND ppa.effective_date BETWEEN (to_date('01-'||:pmon||'-'||:pyear,'DD-MON-YYYY') ) AND last_day(to_date('01-'||:pmon||'-'||:pyear,'DD-MON-YYYY') ) AND (to_date('01-'||:pmon||'-'||:pyear,'DD-MON-YYYY') ) between ppf.effective_start_date AND ppf.effective_end_date AND pivf.name ='Pay Value' ORDER BY to_number(ppf.employee_number) ,ppf.person_id,petf.element_name
This query gives the values of outcome performance of the elements in the set of elements.
HTH -
How to get the report of BI Publisher services BIEE presentation
Hello everyone, I installed the POET and BI Publisher in the same host and I followed the configuration in the poet oracle installation documentation, but when I want to access the BI publisher company or get the BI Publisher report in presentation services, I get the error saying cannot access the PIF, I have to do additional configuration or do I need to install any component?
Thanks in advance ~Check here:
http://gerardnico.com/wiki/dat/BIP/configuration_bip
All the steps are described.The stage of Oracle BI presentation integration Service is in this paragraph.
http://gerardnico.com/wiki/dat/BIP/configuration_bip#integration_of_oracle_bi_presentation_serviceSuccess
Nico -
is it possible to get the label of any variable as a string?
After all I have label indicator (or other) is there a function that reads the label and returns a string?
Code and attached image (I use 8.2)
First of all, the reference is a control - it is plugged into the connector pane.
This will work only for numeric values. I found a way to run generic references, but I still do and it is probably too much work, unless you really need. There might be an easier way...
When you this Subvi VI another, would connect you a reference to the object that you want as the label to the input terminal.
Let me know how it goes...
-
How to get the apex developing system variables
Hi all
Please help me find system variables, such as user name, the date system, workspace name, Application name, name of the registered source (field of the table) etc... in the apex development environment.
Thank you
DennisHi Dennis,
If you want to get all the items page,... on the current page have a look at the views of the APEX dictionary. You can query all the metadata of your application at run time. For example
select item_name from apex_application_page_items where application_id = :APP_ID and page_id in (0, :APP_PAGE_ID) order by item_name
will return the page all items on the current page and on page 0 names. Page 0 is a global page where all the components of this page to get merged into the current page during execution.
The APEX_DICTIONARY view to return all the available Apex dictionary views.
Concerning
Patrick
-----------
My Blog: http://www.inside-oracle-apex.com
APEX Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolf -
How do I get the name of a variable
Hi people
(1) in the XML example below, the element in the XPath XML node according to position Connection/FileItemList/FileItem/FileType/InitTAP / may have a different name. In the example below, the current name of the element is InitTAP , but it can have many other names (e.g., InitTAP06 InitTAP44 etc.)
(2) what I am trying to achieve is to create a new column - Record_Type in the LIST box, SELECT below which uses an XPath expression to display the nameof this element node _. Currently, it displays InitTAP.
(3) the progress so far: I've replaced the reference InitTAP hardcoded in XPath with the Joker XPath expressions ' *' operator, which matches any node of the element. It works fine so far but I have difficulties to reach my final goal to return the name of the dynamic element in the column Record_Type.
Results belowWITH t as (SELECT XMLTYPE( '<RTDR> <RTDRFileHeader> <Prefix>MRTDR</Prefix> <Sender>EDSCH</Sender> <Recipient>NXTMP</Recipient> <PMN>UKRAS</PMN> <ReportSeqNo>5</ReportSeqNo> <TADIGGenSchemaVersion>2.2</TADIGGenSchemaVersion> <RTDRSchemaVersion>1.1</RTDRSchemaVersion> <CreationTmstp>2009-09-04T04:04:00.000000+02:00</CreationTmstp> </RTDRFileHeader> <ConnectionList> <Connection> <VPMN>UKRZZ</VPMN> <HPMN>LIEK9</HPMN> <FileItemList> <FileItem> <FileID>CDUKRZZ1LIEK901274-00005-m</FileID> <ExchTmstp>2009-08-24T12:07:22.000000+02:00</ExchTmstp> <FileType> <InitTAP> <TAPSeqNo>1274</TAPSeqNo> <NotifFileInd>true</NotifFileInd> <ChargeInfo> <TAPTxCutoffTmstp>2009-08-24T12:52:10.000000+03:00</TAPTxCutoffTmstp> <TAPAvailTmstp>2009-08-24T11:52:10.000000+02:00</TAPAvailTmstp> <TAPCurrency>SDR</TAPCurrency> <TotalNetCharge>0</TotalNetCharge> <TotalTax>0</TotalTax> </ChargeInfo> </InitTAP> </FileType> </FileItem> <FileItem> <FileID>CDUKRZZ1LIEK901280-00005-m</FileID> <ExchTmstp>2009-08-30T12:14:39.000000+02:00</ExchTmstp> <FileType> <InitTAP2> <TAPSeqNo>1280</TAPSeqNo> <NotifFileInd>true</NotifFileInd> <ChargeInfo> <TAPTxCutoffTmstp>2009-08-30T12:52:34.000000+03:00</TAPTxCutoffTmstp> <TAPAvailTmstp>2009-08-30T11:52:34.000000+02:00</TAPAvailTmstp> <TAPCurrency>SDR</TAPCurrency> <TotalNetCharge>0</TotalNetCharge> <TotalTax>0</TotalTax> </ChargeInfo> </InitTAP2> </FileType> </FileItem> </FileItemList> </Connection> <Connection> <VPMN>UKRZZ</VPMN> <HPMN>LIEZZ</HPMN> <FileItemList> <FileItem> <FileID>CDUKRZZLIEZZ01274-00005-m</FileID> <ExchTmstp>2009-08-24T12:07:22.000000+02:00</ExchTmstp> <FileType> <InitTAP> <TAPSeqNo>1274</TAPSeqNo> <NotifFileInd>true</NotifFileInd> <ChargeInfo> <TAPTxCutoffTmstp>2009-08-24T12:52:10.000000+03:00</TAPTxCutoffTmstp> <TAPAvailTmstp>2009-08-24T11:52:10.000000+02:00</TAPAvailTmstp> <TAPCurrency>SDR</TAPCurrency> <TotalNetCharge>0</TotalNetCharge> <TotalTax>0</TotalTax> </ChargeInfo> </InitTAP> </FileType> </FileItem> <FileItem> <FileID>CDUKRZZLIEZZ01280-00005-m</FileID> <ExchTmstp>2009-08-30T12:14:39.000000+02:00</ExchTmstp> <FileType> <InitTAP3> <TAPSeqNo>1290</TAPSeqNo> <NotifFileInd>true</NotifFileInd> <ChargeInfo> <TAPTxCutoffTmstp>2009-08-30T12:52:34.000000+03:00</TAPTxCutoffTmstp> <TAPAvailTmstp>2009-08-30T11:52:34.000000+02:00</TAPAvailTmstp> <TAPCurrency>SDR</TAPCurrency> <TotalNetCharge>10</TotalNetCharge> <TotalTax>11</TotalTax> </ChargeInfo> </InitTAP3> </FileType> </FileItem> </FileItemList> </Connection> </ConnectionList> </RTDR> ') as xml from dual ) SELECT rtd2."VPMN" ,rtd2."HPMN" ,rtd3."TAPSeqNo" ,rtd4."TAPTxCutoffTmstp" ,rtd4."TAPCurrency" ,rtd4."TotalNetCharge" ,rtd4."TotalTax" FROM t rtd ,XMLTABLE( '/RTDR/ConnectionList/Connection' PASSING rtd.xml COLUMNS "VPMN" VARCHAR2(5) PATH '/Connection/VPMN' ,"HPMN" VARCHAR2(5) PATH '/Connection/HPMN' ,"FileXML" XMLTYPE PATH '/Connection/FileItemList/FileItem/FileType/*' ) rtd2 ,XMLTABLE( '/*' PASSING rtd2."FileXML" COLUMNS "TAPSeqNo" VARCHAR2(50) PATH '/*/TAPSeqNo' ,"ChargeInfoXML" XMLTYPE PATH '/*/ChargeInfo' ) rtd3 ,XMLTABLE( '/ChargeInfo' PASSING rtd3."ChargeInfoXML" COLUMNS "TAPTxCutoffTmstp" VARCHAR2(30) PATH '/ChargeInfo/TAPTxCutoffTmstp' ,"TAPCurrency" VARCHAR2(30) PATH '/ChargeInfo/TAPCurrency' ,"TotalNetCharge" NUMBER PATH '/ChargeInfo/TotalNetCharge' ,"TotalTax" NUMBER PATH '/ChargeInfo/TotalTax' ) rtd4;
Any help appreciated.VPMN HPMN Record_Type TAPSeqNo TAPTxCutoffTmstp TAPCurrency TotalNetCharge TotalTax UKRZZ LIEK9 InitTAP 1274 2009-08-24T12:52:10.000000+03: SDR 0 0 UKRZZ LIEK9 InitTAP2 1280 2009-08-30T12:52:34.000000+03: SDR 0 0 UKRZZ LIEZZ InitTAP 1274 2009-08-24T12:52:10.000000+03: SDR 0 0 UKRZZ LIEZZ InitTAP3 1290 2009-08-30T12:52:34.000000+03: SDR 10 11
Best regards
Simon GaddWell, if you were on 11g, it would be as simple as adding the following line in your table of rtd3
,"Record_Type" VARCHAR2(20) PATH 'fn:local-name(.)'
Since you're 10.2.0.3 (judging by previous messages) it has something to do with. getRootElement() but I didn't work for some reason any. See {: identifier of the thread = 507433}
-
Hello
I received a response and sent my response stating that the Outbox is not displayed anywhere on the home page that displays the Inbox sent etc. I tried to replace the Mozilla Thunderbird exe by downloading and installing again, but it still does not show the Outbox folder see attached. Your response, I think that you did not understand my question. I said that he was shown is no longer as you can see in the image below. It makes me think he must have inadvertently hidden by me. If so how can I make it visible again?
Expand the folders the and you'll probably find the Outbox. This is where it lies.
-
Get the Essbase (substitution) environment variable
Hi all
How to retrieve variables stored in Essbase environment reuse them in ODI.
I think to use a view in ODI, is it possible to use in the request to create the view.
Thank you
BenHello
You can use the API of Java Essbase to retrieve variable substitution essbase information.
If you have a read of:-http://john-goodwin.blogspot.com/2009/11/odi-series-planning-11113-enhancements.html
There is a section that goes through how to do this.See you soon
John
http://John-Goodwin.blogspot.com/
Maybe you are looking for
-
How to get the system on disk vs download upgrade
I'm trying to upgrade the system 10.8.5 to El Capitan. I'm pretty slow - Wildblue - on access to the internet and my screen shows that it will take 10 hours to download. Ouch, which will use a large part of my available bandwidth for the month. HOW
-
I've accidentally merged in icloud. How can I find my old favorites?
I'll somehow icloud on my PC of Windows 8 and accidentally merged bookmarks on all my ipads. Well, I deleted my Ipad husband didn't need and when I went to use my PC, they were like the ipad. There was some booksmarks very important on the PC that I
-
Where the icon star for one click bookmarking in Firefox 23.0.1?
There was an icon star in the address bar, which could add a bookmark with a single click, without a menu drop-down menus or keyboard shortcuts that are necessary. It's fast and convenient. It is not in the update of firefox? If not, is there an add-
-
Why only download family movies shared and not stream
I use the family sharing and for some reason that my children need to download a movie, I buy to watch while I always listened to?
-
BlackBerry Smartphones media problems
Hello When I download music websites, save images, screen capture, images etc. they are correctly added to my files, but I can't view any of them so that they do not appear until I do a battery for every occasion pull! Maybe I am in need one day or s