replace some symbols and converts the value to a number
Hi all. I've got bp_link table with 'avalue' column VARCHAR2 (200). If I can find a different version of p here:(a) 100%
(b) 100
(c) 100.00
(d) 100.00
(e) null
(f) symbol of space
(I hope that all versions are mentioned).
So I try to replace some symbols and convert the value to a number using the following steps:
NVL(Avalue,0) - removes the null value
Replace (NVL(Avalue,0), '%', ")-removes the symbol '% '.
Replace (Replace (NVL(Avalue,0), '%', "), ',','. ')-remove a symbol «,»
Trim (Replace (Replace (NVL(Avalue,0),'%',''),',','.')) - removes the symbol space)))
TO_CHAR (Trim (Replace (Replace (NVL(Avalue,0), '%', "), ', '.'")), "FM999999999999.90")-converts format "100.00".
But it still does not, maybe I don't see anything else.
When I just "select * from...". "it works:
Select to_char (trim (replace (replace (nvl(avalue,0), '%', "), ', '.'")), "FM999999999999.90")
as avalue of JJ bp_link where roletypeid = 9
But when I try "order by avalue" ends with error - ORA-01722: invalid number
Select to_char (trim (replace (replace (nvl(avalue,0), '%', "), ', '.'")), "FM999999999999.90")
as avalue of JJ bp_link where roletypeid = 9
order of dd.avalue
What can I do else?
Maybe this will help you
http://nimishgarg.blogspot.com/2010/04/Oracle-SQL-extract-numbers-from-string.html
Tags: Database
Similar Questions
-
Store an encrypted digital value and that the value isn't encrypted visible only some users in Apex
I'm looking for a way to store a value digital encypted in a field in a table (so that it appears encrypted even for a DBA) and display the value of unencypted in the forms of the Apex and interactive reports for some users, but not others.Suggestions as to how I might do this?
Thanks in advance.
Martin
Try these documents:
Using masking to columns to display sensitive columns as NULL values
Using VPD in an APEX Application
Securing data stored using Transparent data encryption
The features you want are characteristic of the database.
You can use DBMS_CRYPTO for encryption of data instead of transparent data encryption, but you will need to create a package for your insert, update, delete and a view that allows the decryption based on v('APP_USER').
Also, you will not be able to search on this column if you are using DBMS_CRYPTO.
-
Help needed to create a POP UP window and stores the values of the custom tab
Hello
I have a requirement to store a program competing in a custom table name.
Fields are concurrent_program_name, user_concurrent_program_name (of fnd_concurrent_programs_vl) and end_user_column_name (fnd_descr_flex_col_usage_vl setting) I finished the job of script to fill the value in the table.
Now the problem is that I have to design a creation page which have concurrent_program_name (LOV) and user_concurrent_program_name (MTI) and setting (link)
If the user selects the value in concurrent_program_name means LOV it should display a relevant user_concurrent_program_name (in MTI) and (window) settings.
So I create card LOV in Concurrent_program_name as follows: 1. the concurrent_program_name card 2. Map of the user_concurrent_program_name.
Now I select an LOV concurrent_program_name and it shows a user_concurrent_program_name in MTI. (Works fine)
I need help how to go ahead with parameters.
If the user clicks on the link he must navigate the window pop up and displays the values of the settings, now I need to keep the close button (if the close button hit the user navigates to page creation.) and if the user hit the button Save page create then it should record the following values of custom table (concurrent_program_name user_concurrent_program_name and settings).
Pls give me an idea to go ahead and also give me some articles about it.
Thank you
Corinne Bertrandcheck out this blog to create a popup window http://mukx.blogspot.com/2007/07/javascript-in-oa-framework.html
You can create a button with 'Window.Close ()' to close the window...
You can get the parameters of CP in the following querySELECT * from fnd_descr_flex_col_usage_vl
where as descriptive_flexfield_name ' $srs$. CONCURRENT_PROGRAM'
AND APPICATION_ID = xxWarning : do not do transactions with the pop-up window.
For information about how to create the page, see Create exercise...
Prasanna-
-
How do I click on a cell in a table control and display the value in a string?
What I want to do is click on a cell in a table control and have the value of the cell in an indicator of the chain. Cell that ever I click on, I wish that the value to be displayed in the indicator.
Thank you!
Use the property "Change Position".
-
Hello
How acquire and store the values of voltage DAQmx?
I tried several code example, but they can't get the chart. I don't want to chart. I want to measure exactly the analog voltage values and record these values - as an excel chart, that contains the selected channels and voltage values.
What the example code that I can use?
My hardware is NI PCI-6251.
Thank you very much.
-
Update and change the values when VI is running
Hello everyone! I have a digital control slider and I want to be able to change and update the value when Vi is running. Can I use the property for this node?
If it is a CONTROL (no), then it is for the user to set the value via mouse / keyboard.
You can still set the value via the NŒUD of PROPERTY or the LOCAL VARIABLE for ALL controls.
What difficulty do you observe?
-
Ring control output is the name of the item and not the value
Hello. I'm new to Labview. I'm experimenting with labview and create just simple VI to learn more about the software. I placed a control of the ring and attached an indicator to this control of the ring. I found that the object of a control ring to select an element and an output value. For example, I placed 3 items in the properties of the ring (red, blue, yellow) and given the value of these items 1,2,3. But when I run the VI and select blue, I was expecting the indicator attached to the control to read 2, but on the contrary, he says 'Blue' (even for other items). What I'm misunderstanding here or to hurt? I've also attached a screenshot.
Your meter is another ring that has the same pair name / value, so it's going to see the name associated with the value. Remove the ring indicator and just drag in an ordinary digital indicator. Then, it will show you the value.
-
Get and set the value to allow selected rolling Shuffle and facing page
Hello world
I work with the page and spread,
For now, I want to value page spead shuffle and type of document.
but I just find the function to get and set the value for the Document Pages allow Shuffle using the
InterfacePtr < IPageLayoutPrefs > iPageLayoutPrefs (static_cast < IPageLayoutPrefs * > (: QueryPreferences (IID_IPAGELAYOUTPREFERENCES, iDocument)))
It has no function to set and get the value of enable selected rolling Shuffle and facing page
No one knows about it?
I thank in advance
There is no code for this example in the SDK or internet. Just understand and apply the concept.
Find the code for the shuffle spread and together following spread shuffle...
// Get active spread UIDRef GetActiveSpread() { UIDRef spreadRef = UIDRef::gNull; InterfacePtr
layoutData(Utils ()->QueryFrontLayoutData()); if(layoutData) { spreadRef = layoutData->GetSpreadRef(); } return spreadRef; } // Get spread shuffle of passed in spread bool16 GetSpreadShuffle(UIDRef& spreadRef) { InterfacePtr spread(spreadRef, UseDefaultIID()); if(!spread) return kFalse; InterfacePtr iBoolData(spread, IID_IISLANDSPREAD); if(iBoolData) { return iBoolData->GetBool(); } return kFalse; } // Set spread shuffle of passed in spread // @param bValue: kTrue = no shuffle, kFalse = allow shuffle ErrorCode SetSpreadShuffle(UIDRef spreadRef, bool16 bValue) { ErrorCode status = kFailure; InterfacePtr spreadCmd(CmdUtils::CreateCommand(kSetIslandSpreadCmdBoss)); if(!spreadCmd) return status; spreadCmd->SetItemList(UIDList(spreadRef)); InterfacePtr iBoolData(spreadCmd, UseDefaultIID()); if(iBoolData) { iBoolData->Set(bValue); } status = CmdUtils::ProcessCommand(spreadCmd); return status; } -
update line and reset the value of the column
I have table (CORS_MTR) with 3 columns...
SEQ ID of the EPR the ID of the child / / desc 100 22 1 one 101 22 2 two new entry as 1 number , that means change the flow of child #
102 22 3 three When I enter the new line in number of children 1 instead of 2 and then the values of the column (child id, desc) another need to be reset as...
SEQ ID of the EPR the ID of the child / / desc 100 22 2 two 101 22 1 one 102 22 3 three 103 22 4 four SEQ PRT_ID CHILD_ID DESC_ 100 22 1 one 101 22 2 two 102 22 3 three declare
number of p_seq: = 103;
number of p_prt_id: = 22;
number of p_child_id: = 1;
p_desc varchar2 (25): = 'a ';
Start
Update cors_mtr
set seq = case when child_id = p_child_id
then seq + 1
other seq - 1
end
where prt_id = p_prt_id
and child_id (p_child_id, p_child_id + 1);
insert into cors_mtr (seq, prt_id)
values(p_seq,p_prt_id);
Update cors_mtr
Set child_id = (select max (child_id) + 1 of the cors_mtr).
desc_ = (select to_char (to_date (max (child_id) + 1, 'J'), 'jsp') of cors_mtr)
where child_id is null.
end;
SEQ PRT_ID CHILD_ID DESC_ 100 22 2 two 101 22 1 one 102 22 3 three 103 22 4 four Concerning
Etbin
-
Hello, I have just purchace pdf to word and excel converter and pay $ 24, but finally it's completely uselless for me because there no Greek language and convert the file completely incomprehensible... that I can speak for that?
Hi mariax7664987,
Https://cloud.acrobat.com/ service export to Adobe PDF format is used to change the shape of PDF file format to other formats supported fire. His will not change the language of the PDF text.
Kind regards
Nicos -
How can I take one allows so-called data entry I ask is how much you have and back up this data in some way, and then the system will offer you different options
Not with ordinary Muse. These things requires a dynamic backend with a connection database and in your case quite likely some substantial customization and programming.
Mylenium
-
How to have an Oracle procedure send and receive the value of a java program.
The procedure below is the place within a package. This "get_extract_ready_headers" procedure to select the columns store_number, terminal_number, tran_number, tran_date, cust_id in the REX_HEAD_EXTRACT of source table. This information is selected in a ref cursor The data were field cust_id which is encrypted. How can I change the get_extract_ready_headers procedure and accomplish 2 things?
1. make this procedure the "cust_id" reading the table source and send the value of a Java program "getheaderinfo" (this java program decrypts the cust_id field).
2. when we get the value unencrypted to the Java program, make the procedure to accept this decrypted value and use it to update the CUST_ID to the table TRAN_HEAD table value target. I use Oracle 11.2.0.2 and TOAD 10.5.1.3.
-The code of procedure
-Table Structure for the table source REX_HEAD_EXTRACTPROCEDURE get_extract_ready_headers (p_records OUT SYS_REFCURSOR) IS BEGIN OPEN p_records FOR SELECT store_number, terminal_number, tran_number, tran_date, cust_id FROM REX_HEAD_EXTRACT; END;
-Create table DDL for the target TRAN_HEAD tableCREATE TABLE REX_HEAD_EXTRACT ( REX_SEQ_NBR NUMBER(20), REVISION_NUMBER NUMBER, DAY NUMBER(3), RESA_TRAN_SEQ_NO NUMBER(20), BUSINESS_DATE DATE, TRAN_SEQ_NBR NUMBER(12), ORG_NUMBER NUMBER, STORE_NUMBER NUMBER, TRAN_DATE DATE, TERMINAL_NUMBER NUMBER, TRAN_NUMBER NUMBER, TRAN_TIME DATE, BATCH_NUMBER VARCHAR2(8 BYTE), BATCH_TYPE VARCHAR2(4 BYTE), TRAN_TYPE VARCHAR2(4 BYTE), SUB_TRAN_TYPE VARCHAR2(4 BYTE), CLERK_CODE VARCHAR2(15 BYTE), TRAN_TAXABLE_AMOUNT NUMBER(12,2), TRAN_TAX_TOTAL NUMBER(12,2), TRAN_GROSS_TOTAL NUMBER(12,2), COUP_TOTAL NUMBER(9,2), MKD_TOTAL NUMBER(9,2), EMPLOYEE_NUMBER VARCHAR2(15 BYTE), EMPLOYEE_NAME VARCHAR2(40 BYTE), TRAN_ALTTAXABLE_AMOUNT NUMBER(12,2), TRAN_ALTTAX_TOTAL NUMBER(12,2), SALE_AMOUNT NUMBER(9,2), RETURN_AMOUNT NUMBER(9,2), RETURNED_AMOUNT NUMBER(9,2), NETCASH NUMBER(12,2), TENDER_CODE VARCHAR2(4 BYTE), MULT_RCPT VARCHAR2(1 BYTE), SPLIT_TENDER VARCHAR2(1 BYTE), RTN_WITH_PURCHASE VARCHAR2(1 BYTE), RTN_WITH_RCPT VARCHAR2(1 BYTE), REASON_CODE VARCHAR2(4 BYTE), PASSWORD VARCHAR2(10 BYTE), RINGTIME DATE, CUST_NUMBER VARCHAR2(12 BYTE), CUST_ID VARCHAR2(50 BYTE), ZIP_CODE NUMBER, POSTAL_CODE VARCHAR2(9 BYTE), PV_TIME_LAPSE NUMBER, ORIG_STORE_NBR NUMBER, ORIG_TRAN_DATE DATE, ORIG_TRAN_TYPE VARCHAR2(4 BYTE), ORIG_TERM_NBR NUMBER, ORIG_TRAN_NBR NUMBER, ORIG_SALE_AMT NUMBER(12,2), ORIG_TENDER_CODE VARCHAR2(4 BYTE), ORIG_CLERK_CODE VARCHAR2(15 BYTE), PREV_TRAN_TYPE VARCHAR2(4 BYTE), PREV_SUB_TRAN_TYPE VARCHAR2(4 BYTE), GIFT_REGISTRY_ID VARCHAR2(25 BYTE), NO_OF_ITEMS NUMBER, TAX_EXEMPT_ID VARCHAR2(18 BYTE), TRAN_RINGTIME NUMBER, AUDITED VARCHAR2(1 BYTE), BATCH_VERSION NUMBER(9,2), BATCH_SOURCE VARCHAR2(5 BYTE), CREATE_DATE DATE, CREATE_ID VARCHAR2(32 BYTE), CREATE_PROC VARCHAR2(32 BYTE), MOD_DATE DATE, MOD_ID VARCHAR2(32 BYTE), MOD_PROC VARCHAR2(32 BYTE), TERMINAL_GROUP NUMBER, USER_DEF_1 NUMBER, USER_DEF_2 NUMBER, USER_DEF_3 NUMBER, USER_DEF_4 NUMBER(12,2), USER_DEF_5 NUMBER(12,2), USER_DEF_6 NUMBER(12,2), USER_DEF_7 VARCHAR2(50 BYTE), USER_DEF_8 VARCHAR2(50 BYTE), USER_DEF_9 VARCHAR2(50 BYTE), MANAGER_NUMBER VARCHAR2(15 BYTE), MANAGER_REASON_CODE VARCHAR2(10 BYTE), MANAGER_SWIPED VARCHAR2(1 BYTE), PHONE_NO NUMBER(11), KCPOS_KTH_USER_101 NUMBER, KCPOS_KTH_USER_102 NUMBER, KCPOS_KTH_USER_103 NUMBER, KCPOS_KTH_USER_104 NUMBER, KCPOS_KTH_USER_105 NUMBER, KCPOS_KTH_USER_106 NUMBER, KCPOS_KTH_USER_107 NUMBER, KCPOS_KTH_USER_108 NUMBER, KCPOS_KTH_USER_109 NUMBER, KCPOS_KTH_USER_110 NUMBER, KCPOS_KTH_USER_201 NUMBER(12,2), KCPOS_KTH_USER_202 NUMBER(12,2), KCPOS_KTH_USER_203 NUMBER(12,2), KCPOS_KTH_USER_204 NUMBER(12,2), KCPOS_KTH_USER_205 NUMBER(12,2), KCPOS_KTH_USER_206 NUMBER(12,2), KCPOS_KTH_USER_207 NUMBER(12,2), KCPOS_KTH_USER_208 NUMBER(12,2), KCPOS_KTH_USER_209 NUMBER(12,2), KCPOS_KTH_USER_210 NUMBER(12,2), KCPOS_KTH_USER_301 VARCHAR2(50 BYTE), KCPOS_KTH_USER_302 VARCHAR2(50 BYTE), KCPOS_KTH_USER_303 VARCHAR2(50 BYTE), KCPOS_KTH_USER_304 VARCHAR2(50 BYTE), KCPOS_KTH_USER_305 VARCHAR2(50 BYTE), KCPOS_KTH_USER_306 VARCHAR2(50 BYTE), KCPOS_KTH_USER_307 VARCHAR2(50 BYTE), KCPOS_KTH_USER_308 VARCHAR2(50 BYTE), KCPOS_KTH_USER_309 VARCHAR2(50 BYTE), KCPOS_KTH_USER_310 VARCHAR2(50 BYTE), KCPOS_KTH_USER_401 DATE, KCPOS_KTH_USER_402 DATE, KCPOS_KTH_USER_403 DATE, DISC_TOTAL NUMBER(9,2) ) CREATE INDEX REX_HEAD_EXTRACT_NDX ON REX_HEAD_EXTRACT (REX_SEQ_NBR, REVISION_NUMBER, STORE_NUMBER, TRAN_DATE, TERMINAL_NUMBER, TRAN_NUMBER)
-SamplesCREATE TABLE NAVISTOR.KCPOS_TRAN_HEADER_BASE ( TRAN_SEQ_NBR NUMBER(12), ORG_NUMBER NUMBER, STORE_NUMBER NUMBER, TRAN_DATE DATE, TERMINAL_NUMBER NUMBER, TRAN_NUMBER NUMBER, TRAN_TIME DATE, BATCH_NUMBER VARCHAR2(8 BYTE), BATCH_TYPE VARCHAR2(4 BYTE), TRAN_TYPE VARCHAR2(4 BYTE), SUB_TRAN_TYPE VARCHAR2(4 BYTE), CLERK_CODE VARCHAR2(15 BYTE) NOT NULL, TRAN_TAXABLE_AMOUNT NUMBER(12,2), TRAN_TAX_TOTAL NUMBER(12,2), TRAN_GROSS_TOTAL NUMBER(12,2), COUP_TOTAL NUMBER(9,2), MKD_TOTAL NUMBER(9,2), EMPLOYEE_NUMBER VARCHAR2(15 BYTE), EMPLOYEE_NAME VARCHAR2(40 BYTE), TRAN_ALTTAXABLE_AMOUNT NUMBER(12,2), TRAN_ALTTAX_TOTAL NUMBER(12,2), SALE_AMOUNT NUMBER(9,2), RETURN_AMOUNT NUMBER(9,2), RETURNED_AMOUNT NUMBER(9,2), NETCASH NUMBER(12,2), TENDER_CODE VARCHAR2(4 BYTE), MULT_RCPT VARCHAR2(1 BYTE), SPLIT_TENDER VARCHAR2(1 BYTE), RTN_WITH_PURCHASE VARCHAR2(1 BYTE), RTN_WITH_RCPT VARCHAR2(1 BYTE), REASON_CODE VARCHAR2(4 BYTE), PASSWORD VARCHAR2(10 BYTE), RINGTIME DATE, CUST_NUMBER VARCHAR2(12 BYTE), CUST_ID VARCHAR2(50 BYTE) ENCRYPT USING 'AES256' NO SALT, ZIP_CODE NUMBER, POSTAL_CODE VARCHAR2(9 BYTE), PV_TIME_LAPSE NUMBER, ORIG_STORE_NBR NUMBER, ORIG_TRAN_DATE DATE, ORIG_TRAN_TYPE VARCHAR2(4 BYTE), ORIG_TERM_NBR NUMBER, ORIG_TRAN_NBR NUMBER, ORIG_SALE_AMT NUMBER(12,2), ORIG_TENDER_CODE VARCHAR2(4 BYTE), ORIG_CLERK_CODE VARCHAR2(15 BYTE), PREV_TRAN_TYPE VARCHAR2(4 BYTE), PREV_SUB_TRAN_TYPE VARCHAR2(4 BYTE), GIFT_REGISTRY_ID VARCHAR2(25 BYTE), NO_OF_ITEMS NUMBER, TAX_EXEMPT_ID VARCHAR2(18 BYTE), TRAN_RINGTIME NUMBER, AUDITED VARCHAR2(1 BYTE), BATCH_VERSION NUMBER(9,2), BATCH_SOURCE VARCHAR2(5 BYTE), CREATE_DATE DATE, CREATE_ID VARCHAR2(32 BYTE), CREATE_PROC VARCHAR2(32 BYTE), MOD_DATE DATE, MOD_ID VARCHAR2(32 BYTE), MOD_PROC VARCHAR2(32 BYTE), TERMINAL_GROUP NUMBER, USER_DEF_1 NUMBER, USER_DEF_2 NUMBER, USER_DEF_3 NUMBER, USER_DEF_4 NUMBER(12,2), USER_DEF_5 NUMBER(12,2), USER_DEF_6 NUMBER(12,2), USER_DEF_7 VARCHAR2(50 BYTE), USER_DEF_8 VARCHAR2(50 BYTE), USER_DEF_9 VARCHAR2(50 BYTE), MANAGER_NUMBER VARCHAR2(15 BYTE), MANAGER_REASON_CODE VARCHAR2(10 BYTE), MANAGER_SWIPED VARCHAR2(1 BYTE), PHONE_NO NUMBER(11), KCPOS_KTH_USER_101 NUMBER, KCPOS_KTH_USER_102 NUMBER, KCPOS_KTH_USER_103 NUMBER, KCPOS_KTH_USER_104 NUMBER, KCPOS_KTH_USER_105 NUMBER, KCPOS_KTH_USER_106 NUMBER, KCPOS_KTH_USER_107 NUMBER, KCPOS_KTH_USER_108 NUMBER, KCPOS_KTH_USER_109 NUMBER, KCPOS_KTH_USER_110 NUMBER, KCPOS_KTH_USER_201 NUMBER(12,2), KCPOS_KTH_USER_202 NUMBER(12,2), KCPOS_KTH_USER_203 NUMBER(12,2), KCPOS_KTH_USER_204 NUMBER(12,2), KCPOS_KTH_USER_205 NUMBER(12,2), KCPOS_KTH_USER_206 NUMBER(12,2), KCPOS_KTH_USER_207 NUMBER(12,2), KCPOS_KTH_USER_208 NUMBER(12,2), KCPOS_KTH_USER_209 NUMBER(12,2), KCPOS_KTH_USER_210 NUMBER(12,2), KCPOS_KTH_USER_301 VARCHAR2(50 BYTE), KCPOS_KTH_USER_302 VARCHAR2(50 BYTE), KCPOS_KTH_USER_303 VARCHAR2(50 BYTE), KCPOS_KTH_USER_304 VARCHAR2(50 BYTE), KCPOS_KTH_USER_305 VARCHAR2(50 BYTE), KCPOS_KTH_USER_306 VARCHAR2(50 BYTE), KCPOS_KTH_USER_307 VARCHAR2(50 BYTE), KCPOS_KTH_USER_308 VARCHAR2(50 BYTE), KCPOS_KTH_USER_309 VARCHAR2(50 BYTE), KCPOS_KTH_USER_310 VARCHAR2(50 BYTE), KCPOS_KTH_USER_401 DATE, KCPOS_KTH_USER_402 DATE, KCPOS_KTH_USER_403 DATE, DISC_TOTAL NUMBER(9,2), RTA_RTN_AUTCOD VARCHAR2(4 BYTE), RTA_RTN_COMMID NUMBER, RTA_RTN_EVNTID NUMBER, RTA_RTN_QTY NUMBER, RTA_RTN_RCPT_SCAN VARCHAR2(1 BYTE), RTA_RTN_REFUND_AMT NUMBER(9,2), RTA_RTN_TYPE_CODE VARCHAR2(4 BYTE), RTA_RTN_WITH_RCPT VARCHAR2(1 BYTE), RTA_RTN_COUNT INTEGER, SDEDVAL1 VARCHAR2(50 BYTE) )
REX_SEQ_NBR,REVISION_NUMBER,DAY,RESA_TRAN_SEQ_NO,BUSINESS_DATE,TRAN_SEQ_NBR,ORG_NUMBER,STORE_NUMBER,TRAN_DATE,TERMINAL_NUMBER, TRAN_NUMBER,TRAN_TIME 478,1,11,12024005,6/11/2012,,1,692,6/11/2012,155,5,6/11/2012 12:57:17 PM, 479,1,11,12024006,6/11/2012,,1,692,6/11/2012,155,6,6/11/2012 2:01:51 PM, 480,1,11,12024007,6/11/2012,,1,692,6/11/2012,155,7,6/11/2012 2:47:10 PM
Then you describe two stored procedures separated. One that has an OUTPUT parameter which is a SYS_REFCURSOR (that you posted initially). And will need you a second procedure that takes as a parameter IN the decrypted CUST_ID and whatever: key (s) is required for the UPDATE is generated.
Justin
-
Set and get the value of the item application in Javascript
Hello guys,.
Can you tell me an example how to set and get the value of the application element in Javascript, and how do I check if the value of the point of application is null in Javascript, too. I have read a few replies, but nothing worked (e.g. $x (app_item), $v (app_item), $s (app_item) and so on).
Thanks in advance!To get the value of an element, use the following syntax:
alert("The value of MY_TEST_ITEM is " + $x("MY_TEST_ITEM").value);
to set the value that you have just made
$x("MY_TEST_ITEM").value="Set to this value";
Keep in mind however that you need to send the page in order so that he could be picked up by APEX - javascript is CLIENT SIDE, ONLY! Either that or use AJAX to put on the side server.
-
How to group and summarize the values with a vertical drop of 100?
Dear gurus
How to group and summarize the values with a vertical drop of 100 as the data indicated below:
Cas_Cod_ Cas_Amt_ Description
300 1000A
301 200 B
302 350 C
400 500 A
401 100 B
402 25
Now the data should be grouped like this
A (300,400) = 1500
(301,401) B = 300
C (302,402) = 375
Make sure that I don't have a column as description in my table to group data on description, its here just to give u an example.Hello
using mod for hundreds:
with x as ( select 300 code, 1000 amt, 'A' descr from dual union all select 301 code, 200 amt, 'B' descr from dual union all select 302 code, 350 amt, 'C' descr from dual union all select 400 code, 500 amt, 'A' descr from dual union all select 401 code, 100 amt, 'B' descr from dual union all select 402 code, 25 amt, 'C' descr from dual ) select mod(code,100) code, sum (amt) from x group by mod(code,100);
Using the mod you get the rest of a division, so mod (300,100) = 0, mod (301,100) = 1, etc.
Herald tiomela
http://htendam.WordPress.com -
Can I create a cursor and set the values by myself
Can I create a cursor and set the values by myself, and it has not been filled by an SQL?
Thanks in advanceYes, you can.
Use variables with a default value or nvl (some_parameter, some_variable) in your cursor WHERE predicate.
They provide an example if it isn't clear, since that's all I can think about reading your post...
Maybe you are looking for
-
Two sites disappear as soon as they load into 32.0.3
These two sites work well on previous versions of FF, IE and Safari. This a http://oercenter.grou.ps goes to an error message on the website saying to try again later. I did it several times. This a http://opendoorsgroup.mentorcloud.com/ disappears a
-
Tecra 8100: Cannot restore my OS
I have a Toshiba tecra 8100 with the recovery of original product CD and I can not install them. When I start my computer I have to press 'C' and let go, but nothing happens. I tried several different ways to support on hold or 'C', but no result. Ev
-
Greetings, Affected by outages of keyboard bluetooth... usually less than 10 minutes per episode, but comes several times a day. Anyone else having a problem? HP Envy 13 PC... Windows 8.1
-
HP has sold thousands of faulty laptops and instead of doing the right thing and fixing the defective machines through a callback, HP concocted a warranty service enhancement that limits their liability to repair the defective product. Good for busi
-
Este archivo tipo are totally comun en descarga exe types. por lo tanto hacer los siguiente we have: 1. If you see the error "missing msvcr100.dll. "then copy the msvcr100.dll" file (included in the installation directory) "C:\windows\system32\. Just