Awk - printing a value between two matching regex [SOLVED]
I'm trying to write a script to parse a single line output, but to then only display the value between two matching regex.
I have got it to only display the value between the matching regex, but then it carries on and displays the rest of the line. How do I tell it to stop once the matching value has been printed?
ARTIST=`awk '/Artist/,/Artist/ {gsub(/Artist/, Artist); print}' /home/sapphire/.foobar2000/track_info`
This produces 'Akira Yamaoka Title She Title Album Silent Hill 1 OST Album CurrentTime 0:03 CurrentTime TotalTime 2:01 TotalTime' rather then the desired 'Akira Yamaoka'.
So I guess I'm asking how one would go about terminating the above awk command? Thanks - I know, it'll be something simple - but I'm not experienced with scripting
Last edited by wyvern (2008-04-10 11:37:30)
ibendiben wrote:Could you share the file you are extracting the data from?
No problem, and thank you for the help so far
This is what's written each time I update my playing track, no more, no less:
Artist Akira Yamaoka Artist Title Silent Hill Title Album Silent Hill 1 OST Album CurrentTime 0:04 CurrentTime TotalTime 2:51 TotalTime
Single line only, as the plugin won't break up the text into anything more than the one line
Similar Messages
-
In BADi , How to pass the values between two Method
Hi Experts,
We have two methods in BADis. How to pass the value between two Methods. Can you guys explain me out with one example...
Thanks & Regards,
Sivakumar SHi Sivakumar!
Create a function group.
Define global data (there is a similiar menu point to jump to the top include).
Create one or two function modules, with which you can read and write the global data.
In your BADI methods you can access the global data with help of your function modules. It will stay in memory through the whole transaction.
Regards,
Christian -
Globale variable to exchange value between two planning function (Formel)
Hi,
can I define a globale variable to exchange the value between two planning function?
any anwser will be very appreciated.
hongweiHi,
can I define a globale variable to exchange the value between two planning function?
any anwser will be very appreciated.
hongwei -
How to pass value between two forms.
Hi all,
how to pass value between two forms(using :parameter),...
Thanks
RajeshTo use parameters, create a parameterlist with the named parameters
DECLARE
pl_id PARAMLIST;
pl_name VARCHAR2(10) := 'tempdata';
BEGIN
pl_id := Get_Parameter_List(pl_name);
IF not Id_Null(pl_id) THEN
DESTROY_PARAMETER_LIST(pl_id);
END IF;
pl_id := Create_Parameter_List(pl_name);
ADD_PARAMETER (pl_id,'MYPARAMETER',TEXT_PARAMETER,:BLOCK.VALUE);
CALL_FORM('MYNEWFORM', NO_HIDE, DO_REPLACE, NO_QUERY_ONLY, pl_id);
END;In the new form you can then just access the parameters via :PARAMETER.MYPARAMETER;
An alternative is the usage of globals:
:GLOBAL.MYPARAM:=:BLOCK.VALUE;
-- call the emp-form
CALL_FORM('MYNEWFORM', NO_HIDE, DO_REPLACE);and in the new form use:
DEFAULT_VALUE(NULL, 'GLOBAL.MYPARAM');
IF :GLOBAL.MYPARAM IS NOT NULL THEN
...The advantage of gloabls is that they can also return values back to the calling form, which is not possible using parameters -
Better approach for checking column values between two different rows
My requirement is to find best Approach to find difference between column values of two different rows.Below I've mentioned two different
approaches I'm thinking of,but I'd like to know is there any other better approach.
version details
SQL> SELECT *
2 FROM V$VERSION;
BANNER
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
PL/SQL Release 11.1.0.7.0 - Production
CORE 11.1.0.7.0 Production
TNS for Solaris: Version 11.1.0.7.0 - Production
NLSRTL Version 11.1.0.7.0 - ProductionTable creation script
CREATE TABLE R_DUMMY
(CA_ID VARCHAR2(16) NOT NULL ENABLE,
CA_VER_NUM NUMBER(4,2) NOT NULL ENABLE,
BRWR_SHORT_NAME VARCHAR2(25 CHAR),
sic_code number,
FAC_ID VARCHAR2(10) NOT NULL ENABLE
/ insert script
insert into r_dummy (CA_ID, CA_VER_NUM, BRWR_SHORT_NAME, sic_code, FAC_ID)
values ('CA2001/11/0002', 2.00, 'Nandu',1234, 'FA000008');
insert into r_dummy (CA_ID, CA_VER_NUM, BRWR_SHORT_NAME, sic_code, FAC_ID)
values ('CA2001/11/0002', 3.00, 'SHIJU',456, 'FA000008');Desired O/P :
ca_id fac_id column_name previous name after_modification
CA2001/11/0002 FA000008 BRWR_SHORT_NAME Nandu SHIJU
CA2001/11/0002 FA000008 sic_code 1234 456My approach
select ca_id,fac_id,column_name,
decode(column_name,'BRWR_SHORT_NAME',lg_brwr,lg_sic) previous_name ,
decode(column_name,'BRWR_SHORT_NAME',ld_brwr,ld_sic) after_modification
from
select
case
when ld_brwr != lg_brwr then
'BRWR_SHORT_NAME'
when ld_brwr != lg_brwr then
'sic_code'
end
) column_name,ca_id,fac_id,lg_brwr,ld_brwr,ld_sic,lg_sic
from (
select ca_id,fac_id,lag_brwr,ld_brwr,ld_sic,lag_sic
from
Select lead(brwr_short_name,1) over(partition by ca_id,fac_id) ld_brwr,
lag(brwr_short_name,1) over(partition by ca_id,fac_id) lg_brwr,
lead(sic_code,1) over(partition by ca_id,fac_id) ld_sic,
lag(sic_code,1) over(partition by ca_id,fac_id) lg_sic,
ca_id,fac_id
from r_dummy
where (ld_brwr != lg_brwr or ld_sic != lg_sic)
)2nd Approach :
=============
select ca_id,fac_id,column_name,
decode(column_name,'BRWR_SHORT_NAME',lg_brwr,lg_sic) previous_name ,
decode(column_name,'BRWR_SHORT_NAME',ld_brwr,ld_sic) after_modification
from
select
case
when ld_brwr != lg_brwr then
'BRWR_SHORT_NAME'
when ld_brwr != lg_brwr then
'sic_code'
end
) column_name,ca_id,fac_id,lg_brwr,ld_brwr,ld_sic,lg_sic
from (
select ca_id,fac_id,brwr_short_name,sic_code
from
Select ca_id,fac_id,brwr_short_name lg_brwr,sic_code lg_sic
from r_dummy
where ca_ver_num = '2.00'
)o,(
Select ca_id,fac_id,brwr_short_name ld_brwr,sic_code ld_sic
from r_dummy
where ca_ver_num = '3.00'
)n
where 0.ca_id = n.ca_id
and 0.fac_id = n.fac_id
and (ld_brwr != lg_brwr or ld_sic != lg_sic)
)Hi Experts,
I've provided sample data where I'm checking for just two columns viz brwr_short_name ,sic_code,but in real time
I've to check for 8 more columns so please suggest me with a better approach.
I appreciate your precious suggestions.Hi,
Thanks for posting the CREATE TABLE and INSERT statements; that really helps!
Here's one wa. Like your 2nd approach, this uses a self-join:
WITH got_r_num AS
SELECT ca_id
, ROW_NUMBER () OVER ( PARTITION BY ca_id
, fac_id
ORDER BY ca_ver_num
) AS r_num
, brwr_short_name
, TO_CHAR (sic_code) AS sic_code
, fac_id
-- , ... -- Other columns (using TO_CHAR if needed)
FROM r_dummy
, unpivoted_data AS
SELECT *
FROM got_r_num
UNPIVOT INCLUDE NULLS
( txt
FOR column_name IN ( brwr_short_name AS 'BRWR_SHORT_NAME'
, sic_code AS 'SIC_CODE'
-- , ... -- Other columns
SELECT p.ca_id
, p.fac_id
, p.column_name
, p.txt AS previous_name
, a.txt AS after_modification
FROM unpivoted_data p
JOIN unpivoted_data a ON p.ca_id = a.ca_id
AND p.fac_id = a.fac_id
AND p.column_name = a.column_name
AND p.r_num = a.r_num - 1
AND p.txt || 'X' != a.txt || 'X'
ORDER BY a.r_num
;To include other columns, add them in the 2 places where I put the comment "Other columns".
Ca_ver_num can have any values, not just 2.00 and 3.00.
This will show cases where a value in one of the columns changed to NULL, or where NULL changed to a value.
There ought to be a way to do this without a separate sub-query like got_r_num. According to the SQL Language manual, you can put expressions in the UPIVOT ... IN list, but when I tried
... UNPIVOT INCLUDE NULLS
( txt
FOR column_name IN ( brwr_short_name AS 'BRWR_SHORT_NAME'
, TO_CHAR (sic_code) AS 'SIC_CODE'
)I got the error "ORA_00917: missing comma" right after TO_CHAR. Perhaps someone else can show how to eliminate one of the sub-queries. -
Replacing one column value between two rows..help??
HI,
I have table T
it has five columns, all are in number data type
Col1 and col2 are jointly primary key i.e. they cannot be repeated combined
when i run this query..
SQL> Select * from t
it shows me the data like this
Col1 Col2 Col3 Col4 Col5
1 1 78 58 12.76
2 1 128 446 32.10
3 1 468 566 52.10
4 1 878 58 52.05
5 1 987 348 22.02
... so on.
my requirement is that i want to update this table by replacing the col1 value between any two rows
suppose this is the first row
Col1 Col2 Col3 Col4 Col5
1 1 78 58 12.76
and this is any 2nd row
Col1 Col2 Col3 Col4 Col5
5 1 987 348 22.02
now i want that for first row the value of col1 replaces the value of col1 of 2nd row
and for 2nd row the value of col1 replaces the value of col1 of 1st row
i.e.
Col1 Col2 Col3 Col4 Col5
5 1 78 58 12.76
Col1 Col2 Col3 Col4 Col5
1 1 987 348 22.02
please tell how to achieve this in single query/procedureregards,
RamisSQL> create table t (id1 number, id2 number, name varchar2(1));
Table created.
SQL> alter table t add primary key (id1,id2);
Table altered.
SQL> insert into t values(1,1,'A');
1 row created.
SQL> insert into t values(5,1,'B');
1 row created.
SQL> commit;
Commit complete.
SQL> select * from t;
ID1 ID2 N
1 1 A
5 1 B
SQL> var val1 number
SQL> var val2 number
SQL> exec :val1 := 1;
PL/SQL procedure successfully completed.
SQL> exec :val2 := 5;
PL/SQL procedure successfully completed.
SQL> update t set id1 = (:val1 + :val2) - id1 where id1 in (:val1,:val2);
2 rows updated.
SQL> select * from t;
ID1 ID2 N
5 1 A
1 1 B
SQL> rollback;
Rollback complete.
SQL> select * from t;
ID1 ID2 N
1 1 A
5 1 B
SQL> commit;
Commit complete.
SQL> update t set id1 = decode(id1,:val1,:val2,:val1)
2 where id1 in (:val1, :val2);
2 rows updated.
SQL> select * from t;
ID1 ID2 N
5 1 A
1 1 BRgds. -
How to get values between two years??
select distinct a.band_no_daftar, a.episod, a.band_nama1, a.penjara,
to_char(b.trkh_semak_layak,'yyyy') as tahun,
c.penj_lokasi
from banduan a, prl_semak_layak b, penjara c
where a.band_no_daftar = b.no_daftar(+)
and a.episod = b.episod(+)
and a.penjara = c.penjara_id
and b.status_layak = 1
and b.trkh_semak_layak between trunc(to_date(:dari,'yyyy')) and to_date(:hingga,'yyyy')
group by c.penj_lokasi, a.band_no_daftar, a.episod, a.band_nama1, a.penjara,
to_char(b.trkh_semak_layak,'yyyy')
order by a.penjarahow i'm going to retrieve records between two years??for example from year 2011 to 2012.CREATE TABLE PRL_SEMAK_LAYAK
NO_DAFTAR VARCHAR2(10 BYTE) NOT NULL,
EPISOD NUMBER(2) NOT NULL,
TL_HUK NUMBER(1),
TL_KLAS NUMBER(1),
TL_JAD4 NUMBER(1),
TL_KESLAIN NUMBER(1),
TL_LP NUMBER(1),
TL_RAY NUMBER(1),
TL_PPI NUMBER(1),
STATUS_LAYAK NUMBER(1),
TRKH_LAYAK_PAROL DATE,
KOD_PEJABAT_PAROL VARCHAR2(10 BYTE),
TRKH_MULA_PRL DATE,
TRKH_TAMAT_PRL DATE,
TEMPOH_T NUMBER(4),
TEMPOH_B NUMBER(4),
TEMPOH_H NUMBER(4),
KLASIFIKASI_PRL NUMBER(1),
TL_ROTAN NUMBER(1),
PECAHAN_KESALAHAN VARCHAR2(3 BYTE),
TERIMA_DOSIR NUMBER(1),
TRKH_DOSIR DATE,
TRKH_SEMAK_LAYAK DATE
Insert into prl_semak layak
(NO_DAFTAR, EPISOD, TL_HUK, TL_KLAS, TL_JAD4, TL_KESLAIN, TL_LP, TL_RAY, TL_PPI, STATUS_LAYAK, TRKH_LAYAK_PAROL, TL_ROTAN, TRKH_SEMAK_LAYAK)
Values
('70201849', 9, 1, 1, 1, 1, 1, 1, 1, 1, TO_DATE('04/06/2013 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 1, TO_DATE('12/24/2012 10:46:40', 'MM/DD/YYYY HH24:MI:SS'));
Insert into prl_semak layak
(NO_DAFTAR, EPISOD, TL_HUK, TL_KLAS, TL_JAD4, TL_KESLAIN, TL_LP, TL_RAY, TL_PPI, STATUS_LAYAK, TRKH_LAYAK_PAROL, TL_ROTAN, TRKH_SEMAK_LAYAK)
Values
('670500066', 5, 1, 1, 1, 1, 1, 1, 1, 1, TO_DATE('04/22/2013 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 1, TO_DATE('12/24/2012 11:03:27', 'MM/DD/YYYY HH24:MI:SS'));
Insert into prl_semak layak
(NO_DAFTAR, EPISOD, TL_HUK, TL_KLAS, TL_JAD4, TL_KESLAIN, TL_LP, TL_RAY, TL_PPI, STATUS_LAYAK, TRKH_LAYAK_PAROL, TL_ROTAN, TRKH_SEMAK_LAYAK)
Values
('71000424', 3, 1, 1, 1, 1, 1, 1, 1, 1, TO_DATE('04/26/2013 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 1, TO_DATE('12/24/2012 11:11:01', 'MM/DD/YYYY HH24:MI:SS'));
Insert into prl_semak layak
(NO_DAFTAR, EPISOD, TL_HUK, TL_KLAS, TL_JAD4, TL_KESLAIN, TL_LP, TL_RAY, TL_PPI, STATUS_LAYAK, TRKH_LAYAK_PAROL, TL_ROTAN, TRKH_SEMAK_LAYAK)
Values
('470900549', 1, 1, 1, 1, 1, 1, 1, 1, 1, TO_DATE('12/20/2012 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 1, TO_DATE('11/08/2010 09:15:59', 'MM/DD/YYYY HH24:MI:SS'));
Insert into prl_semak layak
(NO_DAFTAR, EPISOD, TL_HUK, TL_KLAS, TL_JAD4, TL_KESLAIN, TL_LP, TL_RAY, TL_PPI, STATUS_LAYAK, TRKH_LAYAK_PAROL, TL_ROTAN, TRKH_SEMAK_LAYAK)
Values
('30906760', 2, 1, 1, 1, 1, 1, 1, 1, 1, TO_DATE('12/02/2012 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 1, TO_DATE('11/19/2010 08:54:26', 'MM/DD/YYYY HH24:MI:SS'));
COMMIT;i give you this sample,table creation and some insert values.So now,what i should do in order to retrieve all these records? -
Forms6i- how do i pass values between two forms
Forms6i- passing values between forms
I have two forms. FORM1 does a call_form to FORM2.
How do i send values from FORM1 over to FORM2?
I want the 2 values in FORM1 to be passed top FORM2 and displayed as a TEXT ITEM.
But i don't know what is involved in passign vales between forms.Define Parameters in Form2, and pass parameters with the same name from Forms1 with the parameter list option of your call_form built-in.
It is in the online help. -
Pass Values between two Function Modules RFC in Portal
I need to pass values between 2 FM RFC.
I have an implicit enhancement in HRMSS_RFC_EP_READ_GENERALDATA RFC function module.
PERNR LIKE PSKEY-PERNR
ENHANCEMENT 1 Z_ESS_EXPORT_PERNR. "active version
EXPORT pernr to memory id 'PMK'.
set parameter id 'PMK' field pernr.
ENDENHANCEMENT.
On the other hand an RFC function module that has the code:
pmk LIKE PSKEY-PERNR,
pmk_2 LIKE PSKEY-PERNR.
get parameter id 'PMK' field pmk.
IMPORT pmk_2 FROM MEMORY ID 'PMK'.
When the execution is done in development environment, the modules function at the level of R3, the "get parameter id" works only if the debbuger is classic, otherwise not work. The Import to memory id never works.
In the environment of quality, r3 do not work any of the 2 sentences. If run from portal (which is as it should be) does not work.
Thanks if anyone can help me get the problem. Both function modules are executed at the portal.
Regards
Edited by: Daynet1840 on Feb 15, 2012 2:02 AMWhen the execution is directly in r3, in development environment or quality, does the set / get parameter id. Export / Import memory id not work.
But if the FM are called from the portal, does not the set / get parameter id.
I tried changing the sentence as I indicated harishkumar.dy still not working.
Madhu: They're in different function groups, one is standard and the other not.
Regards
Edited by: Daynet1840 on Feb 15, 2012 3:08 PM
Edited by: Daynet1840 on Feb 15, 2012 3:11 PM -
Is it possible to link values between two numbers pages in icloud ?
I want to work with different number pages (not sheets) and link values between them.
The main reason is that I want a group of people to have access to one numbers document and a second group of people to get access to another document that has values extracted from the first document.
Thanks,Thanks for the tip, not only will this help on the few pages I needed, I can utilize this feature for subsequent catalogs and other info that used to be a copy/paste type function.
I ended up using this feature with a simple find/replace to change the page numbers. -
How Do I Pass A Value Between two Spry Tabs?
I am using the Adobe Spry framework to develop an webpage
with 3 tabs. I want to be able to pass a value between tabs.
More specifically...
In Tab1, the user will click on a link that declares a
variable called "groupID" with a value of "999"
Tab 2 Should then open up and have "groupID" available for
use. It will be used as a hidden form field.I think I get what your talking about.
Thing to remember is that all the data is loaded on the same
page still so you can just pass it over like you would using JS.
I did a little example let me know if this is what you are
looking for.
You will see that I added a function at the bottom that will
tell spry what panal to open as well as pass your "groupID" the
function is call on the onclick even.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
<title>Untitled Document</title>
<script language="JavaScript" type="text/javascript"
src="js/SpryTabbedPanels.js"></script>
<style>
.TabbedPanels {
clear:none;
float:left;
width:100%;
padding-top: 0px;
padding-right: 0px;
padding-bottom: 0px;
padding-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 0px;
.TabbedPanelsTabGroup {
margin:0px;
padding:0px;
.TabbedPanelsTab {
-moz-user-select:none;
cursor:pointer;
float:left;
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:11pt;
font-size-adjust:none;
font-stretch:normal;
font-style:normal;
font-variant:normal;
font-weight:normal;
line-height:normal;
list-style-image:none;
list-style-position:outside;
list-style-type:none;
position:relative;
top:0px;
background-color:#FFEEEE;
height: 25px;
width: 161px;
margin-top: 2px;
margin-right: 15px;
margin-bottom: -2px;
margin-left: 0px;
padding-top: 8px;
padding-right: 10px;
padding-bottom: 4px;
padding-left: 10px;
color: #ebe3cb;
background-repeat: no-repeat;
vertical-align: bottom;
text-align: center;
.TabbedPanelsTabHover {
.TabbedPanelsTabSelected {
background-color:#EEEEEE;
height: 25px;
margin-top: 2px;
margin-right: 15px;
margin-bottom: -2px;
margin-left: 0px;
padding-top: 2px;
padding-right: 10px;
padding-bottom: 9px;
color: #46483c;
.TabbedPanelsTab a {
color:black;
text-decoration:none;
.TabbedPanelsContentGroup {
background-color:#EEEEEE;
clear:both;
.TabbedPanelsContent {
padding:4px;
border: 1px solid #000000;
text-align: left;
background-color: #FFFFFF;
.TabbedPanelsContentVisible {
.VTabbedPanels .TabbedPanelsTabGroup {
background-color:#EEEEEE;
border-color:#999999 rgb(153, 153, 153) rgb(204, 204, 204)
rgb(204, 204, 204);
border-style:solid;
border-width:1px;
float:left;
height:20em;
position:relative;
width:10em;
.VTabbedPanels .TabbedPanelsTab {
border-left:medium none;
border-right:medium none;
border-top:medium none;
float:none;
margin:0px;
.VTabbedPanels .TabbedPanelsTabSelected {
background-color:#EEEEEE;
border-bottom:1px solid #999999;
.VTabbedPanels .TabbedPanelsContentGroup {
clear:none;
float:left;
height:20em;
padding:0px;
width:30em;
</style>
</head>
<body>
<div class="TabbedPanels" id="tp1">
<ul class="TabbedPanelsTabGroup">
<li class="TabbedPanelsTab" tabindex="0"
>Tab1</li>
<li class="TabbedPanelsTab" tabindex="0"
>Tab2</li>
<li class="TabbedPanelsTab"
tabindex="0">Tab3</li>
<li class="TabbedPanelsTab"
tabindex="0">Tab4</li>
</ul>
<div class="TabbedPanelsContentGroup">
<!---We include the 4 tabs--->
<div class="TabbedPanelsContent" >
tab1
</div>
<div class="TabbedPanelsContent1" >
<a href="#" onclick="tabtest(3,999);">test</a>
</div>
<div class="TabbedPanelsContent" >
</div>
<div class="TabbedPanelsContent" >
<form name="myform">
This number was passed from tab 1 <input name="mystuff"
/></form>
</form>
</div>
</div>
</div>
</body>
</html>
<!---we add this so the tabs will work--->
<script language="JavaScript" type="text/javascript">
var tp1 = new Spry.Widget.TabbedPanels("tp1", { defaultTab: 0
function tabtest(tab,groupID)
var tp1 = new Spry.Widget.TabbedPanels("tp1", { defaultTab:
tab });
document.myform.mystuff.value = groupID ;
</script> -
Help!printing float values with two decimal places
hi there java pips! im a newbie to this technology so forgive me for this really stupid question....i would like to perform mathematical operations on two float values....the problem is i want to print them in a standard format and that is i want them to be displayed with two decimal places (e.g 190.00, 12,72, 1,000.01) how can i do this?
Try java.text.DecimalFormat
NumberFormat nf = new DecimalFormat("0.00");
System.out.println(nf.format(x)); -
How can I pass value between two pages or fragments?
Hi,
I am learning ADF nowadays. Now I come across the following problem.
There are two pages or fragments in a bounded task flow, e.g. PageA&PageB. There is an inputtext on PageA.When I press an button on PageA with an action jumpping to PageB I want pass the value of this inputtext to annother inputtext, which is shown on PageB. Moreover, the inputtext on PageB comes from a ViewObject. How can I achieve this goal? Any ideas or suggestions?
Best wishes!
Eleven.Xu
Mar 27th.2009
Edited by: Eleven.Xu on 2009-3-26 下午7:03RequestContext requestContext = RequestContext.getCurrentInstance();
requestContext.getPageFlowScope().put("var_name", value);
String value = (String)requestContext.getPageFlowScope().get("var_name");
if you open a new window, the value will be null. -
How do I pass a value between two selectOneChoice fields
I have two selectOneChoice (LOV fields) on the same JSF page (trinidad form). How do I pass the value from the first field to the second one?
AutoSubmit=true;PartialTriggers doesn't work.
I used SetActionListener to copy the value from the first LOV to a pageflow variable ( #{pageFlowScope.x} ) but that didn't work either. I wasn't sure how to reference it in the second LOV ...
thanks
John<af:selectonechoice value="#{bindings.select1.inputValue}" id="select1" autoSubmit="true">
<af:setPropertyListener from="#{row}"
to="#{pageFlowScope.detail}"
type="valueChange"/>
</af:selectonechoice>
<af:selectonechoice value="#{pageFloScope.detail}" id="select2" partialTriggers="select1"/>
The above code is a rough example. you can do the same using the valuechangelistener for the first lov and set the value for the second one..
you can refer this
How to set value for selectOneChoice -
How to pass the value between two screen in dialog programming.
hi everybody,
In case of dialog programming I have two screens 200 & 300.I want to get the value of textfield in screen 200 in scrren 300 in a label or in textfield.
Thanks
byeeAashish,
Welcome to SDN!!!!
SAP does automatic data transfer when u have the variable defined in the Program and same variable(name) being used in any number of screens in the same program.
U donot want to worry abt Data Transfers!!!
If this does not solve ur requirement, let us know.
Thanks
Kam
Maybe you are looking for
-
Using F110 to upload payments into Deutsche Bank (db direct)
I am looking for SAP experts who are using the Deutsche Bank 'db direct' payment platform to exchange information on a number of current integration issues with SAP.
-
Flash Catalyst CS5.5 Crashes when importing photoshop document
I am trying to import a photoshop file authored in Photoshop CS5.1 into Flash Catalyst CS5.5, and Flash catalyst crashes every time part way through the import. A few specifics: Mac OS X 10.6.8 Photoshop CS5.1 Catalyst CS5.5 I have searched this foru
-
I am currently using flexUnit4 writing test cases for our flex project.Here is the problem i am testing the remoteOBject service calls.I have eventListeners for the ResultEvent and FaultEvent.What i want is the when a fault occurs in the service c
-
Application Manager Will Not Install
I recently purchased - about a month ago - the creative cloud and the application manager initially downloaded and installed with no issues. While some of the programs like Illustrator, In-Design, Lightroom and Premier Pro would not download or insta
-
Hi all, how would you create a script to place images side by side from left to right in a psd file, the images are the same size 256x256px and there can be as many as 50 images. Thank you.