Pass a string value to the dialogue
HelloI have a dialog box in a pop-up window. In the dialog box, I text with messages hardcoded as "are you sure you want to delete this item? However, I want to make the most significant message passing a string value, while she reads "Are you sure you want to remove the 'New York' from your database?" My guess is to set up the Group of resources such as:
MESSAGE = are you sure you want to remove {0} from your database?
But how I pass 'New York '?
Thanks a bunch!
Bones Jones
You can set the value read from the resource group in a variable as the value for the outputText and pageFlowScope in the dialog box
{} public void onClick (ActionEvent actionEvent)
Read the value of the resource as in your code and put the result in the PageFlowScope
String confirmDelete = resourceBundle.getString ("CONFIRM_DELETE");
Object [] args = {"New York"};
String result = MessageFormat.format (confirmDelete, args);
Map = pageFlowScopeMap
AdfFacesContext.getCurrentInstance () .getPageFlowScope ();
pageFlowScopeMap.put ("ConfirmationMessage",
* "Do you want to delete'); *
DISPLAY THE CONTEXT MENU
Tips RichPopup.PopupHints = new RichPopup.PopupHints ();
Popup.Show (Hints);
}
. JSPX Page:
actionListener = "#{ContainerPageBean.onClick}" > "
Binding = "#{ContainerPageBean.Popup}" > "
*
ID = "ot1" / >
Thank you
Nini
Tags: Java
Similar Questions
-
How to store the query string value in the scope of the session in webcenter spaces?
Hello
I want to store the query string value (which is given from URL) in the sessionScope variable. According to the value of sessionScope beacause I went some components inside my taskflow. Can someone help me how to store this value in the scope of the session. I use webcenter spaces for my application development.
Thank you
Ashok.
Please see the article below
How to pass a parameter of argument the query URL to a parameter input workflow? (Doc ID 1545808.1).
-
Question about the transition from string values to the Partition clause in a merge statement
Hi all
I use the code to update the data of specific secondary partition using oracle merge statements below.
I'm getting the name of the secondary partition and pass this string to the secondary partition clause.
The Merge statement is a failure, indicating that the specified secondary partition does not exist. But the partition under do exists for the table.
We use a server Oracle 11 GR 2.
Here is the code I use to fill in the data.
declare
ln_min_batchkey PLS_INTEGER;
ln_max_batchkey PLS_INTEGER;
lv_partition_name VARCHAR2 (32767).
lv_subpartition_name VARCHAR2 (32767).
Start
FOR m1 IN (SELECT (year_val + 1) AS year_val, year_val AS orig_year_val)
FROM (SELECT DISTINCT
To_char (batch_create_dt, 'YYYY') year_val
OF stores_comm_mob_sub_temp
ORDER BY 1)
ORDER BY year_val)
LOOP
lv_partition_name: =.
() scmsa_handset_mobility_data_build.fn_get_partition_name
nom_table_p = > 'STORES_COMM_MOB_SUB_INFO ',.
p_search_string = > m1.year_val);
FOR m2
IN (SELECT DISTINCT
'M' || To_char (batch_create_dt, 'MM') AS month_val
OF stores_comm_mob_sub_temp
WHERE TO_CHAR (batch_create_dt, 'YYYY') = m1.orig_year_val)
LOOP
lv_subpartition_name: =.
() scmsa_handset_mobility_data_build.fn_get_subpartition_name
nom_table_p = > 'STORES_COMM_MOB_SUB_INFO ',.
p_partition_name = > lv_partition_name,
p_search_string = > m2.month_val);
DBMS_OUTPUT. Put_line (' lv_subpartition_name = > ' | lv_subpartition_name |' and lv_partition_name = > ' | lv_partition_name);
IF lv_subpartition_name IS NULL
THEN
DBMS_OUTPUT. Put_line ("to the INTERIOR of FI = > ' |") M2.month_val);
INSERT INTO STORES_COMM_MOB_SUB_INFO (T1)
T1.ntlogin,
T1.first_name,
T1.last_name,
T1.job_title,
T1.store_id,
T1.batch_create_dt)
SELECT t2.ntlogin,
T2.first_name,
T2.last_name,
T2.job_title,
T2.store_id,
T2.batch_create_dt
OF stores_comm_mob_sub_temp t2
WHERE TO_CHAR (batch_create_dt, 'YYYY') = m1.orig_year_val
AND'M '. To_char (batch_create_dt, 'MM') =
M2.month_val;
ELSIF lv_subpartition_name IS NOT NULL
THEN
DBMS_OUTPUT. Put_line (' INSIDE ELSIF = > ' | m2.month_val);
MERGE (SELECT *)
OF stores_comm_mob_sub_info
SUBPARTITION (lv_subpartition_name)) T1
USING (SELECT *)
OF stores_comm_mob_sub_temp
WHERE TO_CHAR (batch_create_dt, 'YYYY') =
M1.orig_year_val
AND'M '. To_char (batch_create_dt, 'MM') =
M2.month_val) T2
WE (T1.store_id = T2.store_id
AND T1.ntlogin = T2.ntlogin)
WHEN MATCHED
THEN
GAME UPDATE
T1.postpaid_totalqty =
(NVL (t1.postpaid_totalqty, 0))
(+ NVL (t2.postpaid_totalqty, 0));
T1.sales_transaction_dt =
LARGEST)
NVL (t1.sales_transaction_dt,
T2.sales_transaction_dt),
NVL (t2.sales_transaction_dt,
T1.sales_transaction_dt)),
T1.batch_create_dt =
LARGEST)
NVL (t1.batch_create_dt, t2.batch_create_dt),
NVL (t2.batch_create_dt, t1.batch_create_dt))
WHEN NOT MATCHED
THEN
INSERT (t1.ntlogin,
T1.first_name,
T1.last_name,
T1.job_title,
T1.store_id,
T1.batch_create_dt)
VALUES (t2.ntlogin,
T2.first_name,
T2.last_name,
T2.job_title,
T2.store_id,
T2.batch_create_dt);
END IF;
END LOOP;
END LOOP;
COMMIT;
end;
/
Really appreciate your input here.
Thank you
MK.Hello
You can use "immediate execution" what works.
Thank you
-
Can I pass a string value to a double digital display?
I do a test sequence and save each test datas. When I get around one of the tests, I need the string value "BP" to be saved (in double digital indicator) for this particular criterion. Is there a possible way to do it?
Maybe just use "NaN" instead of "BP". You can store a NaN in the digital indicator.
-
comparing string values in the same table
I have a table with ID (14 digit string values) starting with "A". Ex: A21849B1020792. There may be a different ID with the same substring 'B1020792' in the same table, example: A12349B1020792. If this happens, the ID of the last creation date of must be returned in the result. In other words, comparison is done on the same table. "In the example provided, say A12349B1020792 has the date of 1 January 2015 'and A21849B1020792 has date February 1, 2015", since A21849B1020792 has the most recent date, the result must contain only A21849B1020792.
ID create_date
--- ------------------
A21849B1020792 02/01/2015
A12349 B1020792 01/01/2015
A12345B1234567 01/03/2015
A43567B1234567 01/04/2015
Here's the query I used:substr (a.id, 7) select sc, max (a.create_date) cd1
of table a, table b
where a.id! = b.id
and substr (a.id, 7) = substr (b.id, 7)
and a.id like 'A %' and b.id like 'A %' / * (I used a % because I am interested only IDs that begin with A) * /.
and a.id ('A12349B1020792', 'A21849B1020792','A12345B1234567 ','A43567B1234567')
Group of substr (a.id, 7);
Result:
---------
sc cd1
--- ------
B1020792 02/01/2015
B1234567 04/01/2015
There is one thing that I'm not able to do with my request, that is, be able to get real IDs list and not list of substrings. If I added a.id column in the select clause and the group by clause, the query includes both by substr (a.id, 7) and a.id and as a result, the query returns four lines as below:
substr (a.id, 7) select sc, max (a.create_date) cd1, a.id ID
of table a, table b
where a.id! = b.id
and substr (a.id, 7) = substr (b.id, 7)
and a.id like 'A %' and b.id like 'A %' / * (I used a % because I am interested only IDs that begin with A) * /.
and a.id ('A12349B1020792', 'A21849B1020792','A12345B1234567 ','A43567B1234567')
Group by substr (a.id, 7), a.id.
Result:
---------
sc cd1 ID
--- ------ ---------
01/01/2015 A12349B1020792 B1020792
B1020792 01/02/2015 A21849B1020792
B1234567 01/03/2015 A12345B1234567
B1234567 01/04/2015 A43567B1234567
My goal is to retrieve a list of all the unique identifiers that have the later dates.
ID:
---
A21849B1020792
A43567B1234567
Thanks for your time in advance!
Hello
user11951344 wrote:
I have a table with ID (14 digit string values) starting with "A". Ex: A21849B1020792. There may be a different ID with the same substring "B1020792" in the same table, example: A12349B1020792. If this is the case, the ID of the last creation date must be returned in the result. In other words, comparison is done on the same table. "In the example provided, say A12349B1020792 updated 1 January 2015 ' and A21849B1020792 a date February 1, 2015", as A21849B1020792 has the most recent date, the result should contain only the A21849B1020792.
ID create_date
--- ------------------
A21849B1020792 02/01/2015
A12349B1020792 01/01/2015
A12345B1234567 03/01/2015
A43567B1234567 01/04/2015
Here's the query I used:
substr (a.id, 7) select sc, max (a.create_date) cd1
of table a, table b
where a.id! = b.id
and substr (a.id, 7) = substr (b.id, 7)
and a.id like 'A %' and b.id like 'A %' / * (I used a % because I am interested only IDs that begin with A) * /.
and a.id ('A21849B1020792', 'A12345B1234567', 'A12349B1020792', 'A43567B1234567')
Group of substr (a.id, 7);
Result:
---------
sc cd1
--- ------
B1020792 02/01/2015
B1234567 01/04/2015
There is one thing that I am not able to do with my request, that is, the ability to retrieve the list of IDs real and not a list of substrings. If I added a.id column in the select clause and the group by clause, the query groups according to the two substr (a.id, 7) and a.id and as a result, the query returns four lines as below:
substr (a.id, 7) select sc, max (a.create_date) cd1, a.id ID
of table a, table b
where a.id! = b.id
and substr (a.id, 7) = substr (b.id, 7)
and a.id like 'A %' and b.id like 'A %' / * (I used a % because I am interested only IDs that begin with A) * /.
and a.id ('A21849B1020792', 'A12345B1234567', 'A12349B1020792', 'A43567B1234567')
Group by substr (a.id, 7), a.id.
Result:
---------
sc cd1 ID
--- ------ ---------
B1020792 01/01/2015 A12349B1020792
B1020792 02/01/2015 A21849B1020792
B1234567 03/01/2015 A12345B1234567
B1234567 01/04/2015 A43567B1234567
My goal is to retrieve a list of all the unique identifiers that have the later dates.
ID:
---
A21849B1020792
A43567B1234567
Thanks for your time in advance!
If it makes sense to treat the first 6 characters of the ID separately from the rest of the id in this problem, maybe it makes sense to store those two parts of the id in two different columns. Relational databases work best when each column of each row contains 1 single piece of data (at most). It is so fundamental to the design of table that he called the first normal form.
Given that the two parts are stored in column 1, so you can something like this Request Top - N:
WITH got_r_num AS
(
SELECT r.id
r.create_date AS cd1
, RANK () OVER (PARTITION OF SUBSTR (r.id, 7))
ORDER BY r.create_date DESC
) AS r_num
FROM table_x g - g for data values
JOIN table_x r - r for related values
ON SUBSTR (r.id, 7) = SUBSTR (g.id, 7)
WHERE g.id IN ('A12349B1020792'
, "A21849B1020792".
, "A12345B1234567".
, "A43567B1234567".
)
- AND g.id LIKE 'A %' - if necessary. The above condition ensures already g.id start with "A".
AND r.id LIKE 'a % '.
)
SELECT id, create_date
OF got_r_num
WHERE r_num = 1
;
If you would care to post CREATE TABLE and INSERT instructions for the sample data, and then I could test this.
-
I have the status value that is a string I have to map to the enum type STATUS in the linking of data, either through simple expr Editor, xpath
Association of source data must be Xpath mode and destination in singles
being supported your value in the source similar to the value of your Enum
-
Find and replace the delimited string value by the
Hi all
I have a requirement where I need to find and replace the delimited string values.
For example, the string is "GL ~ 1001 ~ 157747 ~FEB-13~ CREDIT ~ A ~ N ~ US ~ NULL ~". The 4th column gives the month and year. I need to replace it with the name of the previous month. For example: "GL ~ 1001 ~ 157747 ~JAN-13~ CREDIT ~ A ~ N ~ US ~ NULL ~". I need to do the same thing for the past 12 months.
I thought initially divide the values and store it in a variable and then after him substituting the value required, join the return.
I just wanted to know if there is a better way to do it?
Like this:
with a model like
(select "GL ~ 1001 ~ 157747 ~ FEB-13 ~ CREDIT ~ A ~ N ~ $ ~ NULL ~' double UNION ALL data")
Select ' GL ~ 1001 ~ 157747 ~ JAN-13 ~ CREDIT ~ A ~ N ~ US ~ NULL ~' double data)
Select
REPLACE (DATA, TO_CHAR (to_date (substr (data, 16.6), "MON-RRRR"), 'MON - RR'), TO_CHAR (to_date (substr (data, 16.6), "MON-RRRR")-1, 'MON - RR'))
modeling;
GL ~ 1001 ~ 157747 ~ JAN-13 ~ CREDITS ~ HAS ~ N ~ US ~ NOTHING ~
GL ~ 1001 ~ 157747 ~ DEC-12 ~ CREDITS ~ HAS ~ N ~ US ~ NOTHING ~
Ishan
-
How to pass a prompt value to the RPD.
Hi all, I have a unique requirement.
I need to create a quick Date.
After have created you, I need to move to the physical layer of the repository.
I need to create a view in the physical layer in the view has a function that takes the fast values.
This view would be my dimension with a single record date, based on the value quickly past.
and I would join this point of view (table Date, date dimension) to all the other tables.
Please guide me in this issue. It is very crucial and urgent.
I didn't know where to start...Hello
Try to create a Server Variable or the Session Variable in RPD and use it in your level of content where you actually bring the table.
So, whenever you make this table by default you will pass the variable, select guest... and you must set the value of the variable through confirmation. -
issues of scope: verification of string values in the upper levels of Foreach loops
We have problems with a RTF model. How can you check a string value in a loop for each higher level? Here is a trivial example, the RTF does not appear anything.
< LEVEL1 >
< LEVEL1_NAME > ANN < / LEVEL1_NAME >
< LEVEL2 >
< LEVEL2_NAME > BOB < / LEVEL2_NAME >
< / LEVEL2 >
< / LEVEL1 >
RTF:
<? for-each: LEVEL1? >
<? for-each: LEVEL2? >
<? If: LEVEL1_NAME = "ANN"? >
<? LEVEL2_NAME? >
<? end if? >
<? end foreach? >
<? end foreach? >
Thanks for any help, we were faced with this days.
Mike W.Or navigate between them using file.., use... to move up a level
ANN BOB RTF:
LEVEL2_NAME ?>
or can be implemented, without if statement.
LEVEL2_NAME ?>
-
Table of ring to string value for the creation of a table
I want to convert an array of chain ring and generate a picture of him.
But by using the node property to convert each ring is changing the value in the table.
each table represents various registers. so to change different picture!
hereby I enclose a Vi!
I think this will help you.
See attached extract VI.
-
I use apex 4.2 as well as the pop-up skillbuilder. The parent (p110) window opens a child using skillbuilders 2.0 popup. The pop-up (p114) transmits a report worth (#VESSEL_ID #) after confirmation by the user.
For some reason any and I'm sure it's a simple syntax that I am not contagious, when the user selects the #VESSEL_ID #, the appropriate confirmation message will appear, but the window close or change the value.
The field #VESSE_ID # a a link URL:
JavaScript: closeMe (pVessel, psupplierVesselId);
who calls the closeME function:
< script language = "JavaScript" >
function closeMe (pVessel, psupplierVesselId)
{
Alert (psupplierVesselId);
If (psupplierVesselId! == "999999" |) (psupplierVesselId == "999999" & & confirmer ("rappel pour concessionnaires fédéral: quelle déclaration dele de rivage ne sélectionnez pas navire INCONNU")))
{
Window.parent. $(Window.parent.document) .apex_model_page ('close', pVessel);
}
{
< /script >
any help is appreciated! Thank you
Karen
In the 3rd category sister Teresa gave me a D - in penmanship and spelling.
so, basically, I misspelled model. It should be modAl.
Ugh. Thank you!
-
String value of the concatenation in column lines
Hi gurus,
I have following the examples of data
desired resultselect 1111 id,'First row1111' entry_value from dual union all select 1111 id,'Second row1111' entry_value from dual union all select 1111 id,'Third row1111' entry_value from dual union all select 2222 id,'First row2222' entry_value from dual
Can anyone help?ID ENTRY_VALUE 1111 First row1111 Second row1111 Third row1111 2222 First row2222
Thanks in advance.It works awesome in all databases... PUT TO THE TEST.
with xx as ( select 1111 id,'First row1111' entry_value from dual union all select 1111 id,'Second row1111' entry_value from dual union all select 1111 id,'Third row1111' entry_value from dual union all select 2222 id,'First row2222' entry_value from dual) select x.id,rtrim(XMLAGG(XMLELEMENT(e,x.entry_value||' ')).extract('//text()'),' ') from xx x group by x.id;
gives
1111 First row1111 Second row1111 Third row1111 2222 First row2222
HTH
Vanessa B. -
Replace the string value of table
with cte as)
Select val '123', 'abwec' double val1
Union of all the
Select "456" val, "mowerw" double val1
Union of all the
Select val '709', 'wkwere' double val1
Union of all the
Select val '078', 'awerwewerwreq' double val1
)
Select * from cte;
-incoming string
"asdasd123ewrwer@87w8eopiu456werwer@asdwer709@ewrwerewrwqqwezxder078 @..."
need to replace like 'abwec' 123 and 456 as "mowerw" and 709 as wkwere and 078 as 'awerwewerwreq '.
How to replace the string value of the string
I'm going to the table which will have mapping information I need to see the incoming string and replace the appropriate value of the val to val1
something like
Of
"asdasd123456werwer@asdwer709@ewrwerewrwqqwezxder078ewrwer@87w8eopiu @..."
TO
"asdasdabwecewrwer@87w8eopiumowerwwerwer@asdwerwkwere@ewrwerewrwqqwezxderawerwewerwreq@..."
By using the TYPE clause.
with cte as
(
Select val '123', 'abwec' double val1
Union of all the
Select "456" val, "mowerw" double val1
Union of all the
Select val '709', 'wkwere' double val1
Union of all the
Select val '078', 'awerwewerwreq' double val1
),
input_tbl
as
(
Select "asdasd123ewrwer@87w8eopiu456werwer@asdwer709@ewrwerewrwqqwezxder078 @..." input_str
of the double
)
Select max (input_str) Dungeon (first order by desc NWR dense_rank) input_str
de)
Select rno, input_str
de)
Select rownum NWR
val
val1
input_str
count (*) over() cnt
from cte
Cross
Join input_tbl
)
model
dimension (NWR)
measures (val, val1, cnt, CAST (input_str AS VARCHAR2 (4000)) input_str)
(
input_str [any] = replace (nvl (input_str [cv () - 1], input_str [cv ()]), val [cv ()], val1 [cv ()])
)
)
-
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.
-
How to use CFPARAM with a list of string values
Hi all
I have a field value that can be stored with multiple values for a single record: Work_Order = '555555,666666,111111' (note that these are actually stored as a single string value in the comics with commas.)
I need to analyze this field and enter a new query clause where the string values:
< CFSET WOIDS = CapProjects.Work_Order >
< cfloop condition = "#find(',,',WOIDS) #" >
< cfset WOIDS = "#rereplace (WOIDS, ',',', null, ',' ALL') #" > < br >
< / cfloop >
< cfquery name = "CapProjectsWOIDS" datasource = "#URL. DB #">"
SELECT [ENGOPSMTRLSID]
[Work_Order]
OF ENGOPSMTRLS
WHERE
< CFOUTPUT >
ENGOPSMTRLSID = #URL. INDEX #.
< / CFOUTPUT >
AND
< CFOUTPUT >
Work_Order in (< cfloop index = list "idx" = "#variables.) WOIDS #">"
< cfqueryparam
value = #WOIDS #.
cfsqltype = "cf_sql_varchar".
list = 'true '.
(/ > < / cfloop >)
< / CFOUTPUT >
< / cfquery >I'm doing this right? I get the following error: error running query database. [Macromedia] [SQLServer JDBC Driver] [SQL Server] Incorrect syntax near '@P4 '. What's the length of the loop? How do I drop?
Thank you
John
First of all, you need not use CFOUTPUT in a CFQUERY (or most / all other CFtags)-CF knows.
Second, you need not complete a list for an 'IN '. Unless you use a dark database is not MS - SQL, MySQL or Oracle. And you already know that CFQUERYPARAM has an attribute from the list.
NOTE: This assumes that the Work_Order data type is char or varchar, not whole.
SELECT [ENGOPSMTRLSID] ,[Work_Order] FROM ENGOPSMTRLS WHERE ENGOPSMTRLSID = #URL.INDEX# /* <--- I didn't see URL anything, before this. And I REALLY cannot stress how bad of an idea it is to use a URL variable for your DSN. Just sayin'. */ AND Work_Order in ( ) Given that you use for the varchar type, you must put quotation marks around the value (line 08), as I have demonstrated.
HTH,
^_^
Maybe you are looking for
-
Satellite Pro A300-1LG - cannot enter the BIOS settings
For some time when I turn the notebook on the page where it appears the Toshiba logo are not displayed and I can't get into the BIOS. And put back two or three times and then reappear details. I tried to reinstall the BIOS, but the BIOS installation
-
I can't the new 9.3 iOS to load. Stops after verification. Says he has no Internet, but it does. Never had this problem with the latest updates!
-
See the Photos as a slide show.
Viewing pictures as a slide show in Microsoft Digital 2006, a black ban has recently appeared on the screen. Have checked all my photo files, black bands appear on all the pictures, Either by the way, these bands appear on no other files. can help? T
-
I want to create a contact group during my Windows Contacts. Windows says click on new Contact Group on the toolbar help, but there is nothing like that in my toolbar. How can I create a group?
-
Is there a way to disable the Autorun to start running? I want to give the user the option to disable the auto soft start until it clicks on the application. If this option is not available, is there a way to detect that the application has started i