H:selectOneMenu and its value parameter trouble
Hello!
I have a form in my jsp page ^
<h:dataTable id="table" value="#{Reference.template.fields}" var="list" rowClasses="list_row_odd, list_row_even" columnClasses="align_right, align_left" width="100%" border="0" cellpadding="4" cellspacing="1">
<h:column rendered="#{(list.label != 'code')}">
<h:outputText value="#{list.label}" escape="false"/>
</h:column>
<h:column rendered="#{(list.optionsSize < 1)&&(list.label != 'code')}">
<h:inputText id="ref_input" value="#{Reference.faculty}" readonly="true" rendered="#{list.label == 'Факультет'}" size="50"/>
<h:inputText id="ref_input_1" value="#{list.value}" rendered="#{(list.label != 'Факультет') && (list.value == '')}" size="50"/>
<h:inputText id="ref_input_2" value="#{list.value}" readonly="true" rendered="#{(list.label != 'Факультет') && (list.value != '')}" size="50"/>
</h:column>
<h:column rendered="#{(list.optionsSize > 0) && (list.label != 'code')}">
// here is the problem -----------------------------
<h:selectOneMenu id="list" value="#{list.value}">
<f:selectItems value="#{list.options}" />
</h:selectOneMenu>
</h:column>
<h:column rendered="#{(list.label != 'code')}">
<h:outputText value="#{list.lov}" escape="false"/>
</h:column>
</h:dataTable>the trouble is if there is a value parameter, the form is submitted to server
as empty one, if there isn't value parameter it works well.
list.getValue - returns String
and i strongly need to show the selected value!!!1
Please help
I'm not talking about JavaScript.
I would like to write my own Java function:
String formatStatus(String status, Date date) {
If (status.equals("A"))
return "Active from date " + date;
else
return "Not active";
and then to replace inside my dataTable's column:
<h:outputText id="text2" value="#{varpaketi.status}" />
with:
<h:outputText id="text2" value="#{pc_Paketi.formatStatus($status, $date)}" />
where $status and $date are dataset variables which were displayed in column of my datatable.
Similar Messages
-
Display data to edit based on fields and its value defined in internal tabl
I need to display data in a internal table for editing in a screen.
you have a internal table with field name , data types and its value. I need to display data in a screen ( sceen painter not in a report) row by row in vrtical format.
The internal table's structure not fix. you can have any number of fields in the internal table.
Can you please send me code if it is available with you or send me any senario in SAP if any ...so that i can debug to extract the code..
have to display data vertically as below in editable format,
for example,
Airline
Flight Number
Flight date
Flight price
Airline Currency
Plane Type
Maximum capacity
Occupied econ.
Total
No of fields will change.
also F4 help needs to be attached with each field.
I think it can be done through step loop. can anybody give sample code or tell me where to find in SAP or somewhere else?
it will be great help to me..
SanjeevHi
just check out this program DEMO_DYNPRO_STEP_LOOP. -
Function to extract characteristics and its value from PI sheet
Hi experts,
I am working on a report to generate Avg. deckle for the month form the PI sheet. In the PI sheet the data that is displayed is basically the message characteristcs and its value.
Please tell me ne function that will give me the related data to be displayed.
Thanks in advance..reading the characteristics: CAVC_DB_READ_CFG_IN_CBASE.
reading the values according to the characteristics: CARD_CHARACTERISTIC_READ.
Note: the second FM is obsolete according to SAP. but it still works in opposition to the new ones. -
Is there any function module to get vc characteristics and its value using material number?
Hi Experts,
I am using BAPI_CLASS_GET_CHARACTERISTICS, BAPI_OBJCL_GETCLASSES to get characteristics description and its values.
Is there any other Function module to pull this values using material number?
Thanks in Advance.
RamkumarHave you tried this BAPI_OBJCL_GETDETAIL
Import parameters
MATNR value in the OBJECTKEY
MARA in OBJECTTABLE
Class name in CLASSNUM
'001' in CLASSTYPE
You will get the Class Characteristics data into these tables:
ALLOCVALUESNUM
ALLOCVALUESCHAR
Jogeswara Rao K -
Whats the difference betweeen passing the table variable and table valued parameter?
Hi Everbody
Can someone one tell me what's the difference between passing a table variable and table valued parameter to a stored procedure or function? Can both be used to pass a table to a stored procedure/function?
Regards
RegardsThey are essentially the same. What we call a table variable is a local
variable. A table-valued parameter is an incoming parameter to the
procedure. The only difference is that the parameter is readonly.
When you call a stored procedure, you can pass a table variable as the
actual parameter. Or a table-valued parameter that you pass on.
CREATE PROCEDURE nisse_sp @tvp sometype READONLY AS
DECLARE @local someothertabletype
EXEC pelle_sp @tvp, @local
Erland Sommarskog, SQL Server MVP, [email protected] -
Hi All,
In whih table i could find Characterstics and its values.
regards
sunilHi sunil,
T2513 Table of Characteristic Values
T2538 Table of Characteristic Values
will give you Characteristic wise values.
AUSP Characteristic Values for STD LOBM Characteristics.
Find Some More herewith.
COMM_CFGCLNHIER Numeric Characteristic Values Hierarchy
COMM_CFGCLSHIER Symbolic Characteristic Values Hierarchy
COMM_CFGNHIER Numeric Characteristic Values Hierarchy
COMM_CFGSHIER Symbolic Characteristic Values Hierarchy
COMM_CFGVALSYM Symbol Table for Characteristic Values
EHQMT_CODE2 EH&S-QM: Assignment of Characteristic Valu
IBSYMBOL IB: Characteristic Value Assignment
PGPLE SOP Characteristic Values
RCCHARVAL Characteristic Value for Classification
RSMDTMPTAB Temporary Storage for Characteristic Value
SCEVALSYM Symbol Table for Characteristic Values
T22A7 Text Table for Characteristic Values
T22A8 Text Table for Characteristic Values
T22A9 Text Table for Characteristic Values
T22B0 Text Table for Characteristic Values
T22B1 Text Table for Characteristic Values
T22B2 Text Table for Characteristic Values
T22B3 Text Table for Characteristic Values
T22B4 Text Table for Characteristic Values
T22B5 Text Table for Characteristic Values
T22B6 Text Table for Characteristic Values
T22E6 Text Table for Characteristic Values
T22E7 Text Table for Characteristic Values
T22E8 Text Table for Characteristic Values
T22E9 Text Table for Characteristic Values
T241B Description of Characteristic Values
TDCHARACVALUE_T
TDCHARACVALUE2_T
TE518G
TF199C
TFC_INST_VAL
TFC_TEMPL_VAL
TFIN000
TFK115G
TFK115S
TFK125G
TKEPROT
TRACC_GROUP
TRACC_GROUP_T
VTBLSLA
WRF_APC_PACHR
WRF_CHARVAL
WRF_CHARVALT
WYT2M
I am sorry but I have pasted this much data because you haven't specified the requirement.
Regards,
Shyamal
Edited by: Shyamal Joshi on Aug 20, 2008 1:01 PM
Above all will give you in form that can be transported to EXCEL -
Parameter gets reset and Multi-value parameter doesn't work
Hi
Two Issues:
I've set the value of a Date parameter (Start Date) when moving from the home screen (Report 1) to the next screen (Report 2) as the first day of the current year (DateSerial(Year(Today),1,1). In report 2, if I try to change the Start Date to another date,
it gets reset to the first day of the year. I had the default value set as the first day of the year and even after removing it, the Start Date gets reset.
I've set a multi-value parameter (Area) in Report 1 that collects four integers. I pass Area to Report 2 (through Join (Parameters!Area.value,",")). I also used SPLIT (Join (Parameters!Area.value,","),",") to get the value.
Then, in the data set, I call this parameter as "Select A1,A2,A3,B1,B2,B3 FROM TEST_VIEW WHERE ID IN (?)". But this query throws an error that the query could not be executed. I ran the same query on the server side and it runs fine.
Note:
We cannot reference parameter names as @area for example because the Composite Server doesn't allow that.
Split and Join operate on strings but my parameters are of integer type. Is this an issue?
Please help.1. Are setting an expression for available values of parameter in report 2? Is the value you pass a valid among the set of values?
2. IN wont work with comma separated values. You need to parse the individual values out using a string parsing udf as a table and then join to that
so in your case you would be like
Select A1,A2,A3,B1,B2,B3 FROM TEST_VIEW t
INNER JOIN dbo.ParseValues (@Area,',')f
ON t.ID = f.Val
ParseValues UDF can be found in below link
http://visakhm.blogspot.in/2010/02/parsing-delimited-string.html
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
How to find custom parameters and its values?
Hi,
Please let me know how to find the list of custom parameters with its possible values and its use in programs?
Thanks.There is no validation for the values that can be input so you can put anything in the value field. For example, try "BUK" and
then a value for a company code you know does not exist.
When you run a transaction with that it will default that value. -
FM to get OA/SA history and its value
hi guys,
is there any FM that can be used to get OA/SA history and its follow-on documents value ..pls adviceHi Huang,
i had a similar requirement and unfortunately i wasnt able to get any solution on this(probably there isnt).
how to get Position of cursor and its cell value in webdynpro alv
My requirement was to pick up the value from the cell and do a multi paste to all lead selected records of the same column.
Sadly, i had to do a workaround to achieve the solution.
1) user needs to click on "Enter" key with cursor on the cell
2) lead select all the records where multipaste is required
3) then click on button "Paste" on application bar to paste the values to multiple cell.
Let me know if you get anything on this (for my education).
Regards,
Tashi -
h:outputText/ and its value property
I have this case:
<h:outputText id="text1" value="#{varpak.status}" />
now, I would like to format its value property to be something like:
<h:outputText id="text1" value="myFunction(#{varpak.status})" />
and then to write myFunction's body. Is this possible? How can I do that? Is there any example? I couldn't find any. Where should I put myFunction's body?
Thank you in advance.I'm not talking about JavaScript.
I would like to write my own Java function:
String formatStatus(String status, Date date) {
If (status.equals("A"))
return "Active from date " + date;
else
return "Not active";
and then to replace inside my dataTable's column:
<h:outputText id="text2" value="#{varpaketi.status}" />
with:
<h:outputText id="text2" value="#{pc_Paketi.formatStatus($status, $date)}" />
where $status and $date are dataset variables which were displayed in column of my datatable. -
How can i remove a key and its value from properties file
hi all,
i want remove a particular key and associated value from the
properties file. is their any standard way of doing?
thanks inadvance
dayahi,
thanks
i am able to remove the key,
one more question how can avoid storing date and time
in properties file.
thanks
daya -
How to search for a field and its value in an internal table
Hi,
I want to search for a field(which i dont know whether it exists or not) in an internal table and on finding that field, I have to update the value of that field. How do I do it? I think its similar to how SEARCH works but i wanted to know the internal table eqivalent of it.Hi Sujay,
this code will help ful to u, just gi through it,
TABLES : KNA1,VBAK,VBAP.
***********INTERNAL TABLE DECLARATIONS****************
DATA : IT_KNA1 TYPE TABLE OF KNA1,
WA_KNA1 TYPE KNA1.
DATA : IT_VBAK TYPE TABLE OF VBAK,
WA_VBAK TYPE VBAK.
DATA : IT_VBAP TYPE TABLE OF VBAP,
WA_VBAP TYPE VBAP.
START-OF-SELECTION.
SELECT * FROM KNA1
INTO TABLE IT_KNA1
WHERE KUNNR = P_CUST.
IF NOT IT_KNA1 IS INITIAL.
SELECT * FROM VBAK
INTO TABLE IT_VBAK
FOR ALL ENTRIES IN IT_KNA1
WHERE KUNNR = IT_KNA1-KUNNR.
IF NOT IT_VBAK IS INITIAL.
SELECT * FROM VBAP
INTO TABLE IT_VBAP
FOR ALL ENTRIES IN IT_VBAK
WHERE VBELN = IT_VBAK-VBELN.
ELSE.
WRITE : / 'Customer',P_CUST,'does not exist ......'.
ENDIF.
ELSE.
WRITE: / 'sales order does not exist for',P_CUST.
ENDIF.
Rewards points plz if useful
Ganesh. -
Report showing overdelivery material and its value.
A report is required showing the material received by giving overdelivery/unlimited tolerance. It should give the details of the material,quantity excess received, excess quantity value.
How to get it.
Pl reply.
T.SRINIVASHello Friend
Try Report with Tcode ME2M and in input screen dont forget to choose "ALLES" in Scope of list.
Else If your corporate policy is the same regardless of vendor /
material combination, then you can use the ME2N transaction. It
has a dynamic selections button that allows you to search on
practically any PO field. The Delivery tolerances fields are
contained on the PO item folder of the dynamic selections.
Additionally, you can enter a document date restriction to limit
the results. I also recommend entering "WE101" - "OPen Goods
Receipt" as a Selection parameter to keep the list to include
open, GR relevant PO Items.
If the Delivery tolerances vary by Material vendor and you can
not create variants in the ME2N transaction to capture the
relevant scenarios, then you may have to write a SAP query to
compare the PO Item to the Purchasing Information REcord. If
this is the case, I recommend using Infoset MEPOLDB for the
Purchase ORder information, and table EINE for the Delivery
tolerance information of the PIR.
Reward if useful
Regards
SE
Edited by: SAP Enjoy on Jan 24, 2008 4:56 PM -
Details about BayerGreenSplit and its value
Does anyone know anything more than the few lines written in the DNG documentation about this tag, BayerGreenSplit?
How is the green pixels divergence measured? How can one decide what BayerGreenSplit value corresponds to his/her camera?
The 0 - 5000 range looks quite strange. Maybe the phenomena described has also another name?
Any help is appreciated.
Thank you.OK, I exhaled. ;)
Used to think the weird clay texture ACR rendered high frequency detail like blades of grass and foliage in the distance in my Pentax PEF's was something undesirable. But after comparing ACR's ease of use, quality and speed of its editing tools and simpler interface compared to other raw converters, the odd texturing is tolerable.
And besides that it can only be seen at 200% zoomed view anyway and can't be seen even on 20x30in. print enlargements. This texture also produces some very clean results when applying aggressive sharpening as well, so I'm thinking whatever algorithm Adobe's engineers are using to produce such a texture must be intentional.
I'm just fascinated by all the variations achieved just with demosaicing algorithms. -
Downlading Material stocks and its Value, storage location wise
Dear Experts,
As we are reimplementing SAP, we need to download the
a) stocks Plant and storage location wise for all the materials. Bcoz stocks are maintained in different storage locations.
b) Value of stocks for each material in the Plant and storage location wise, Bcoz stock qty will be different in different location and hence the value will be dependent upon the qty ?
How can we extract this ? From which tables do we need to extract this ?
Can any one guide on this ?
Regards
Javeed Ahamed.Goto MB52 report ,change the layout asper your requirement and extract to excel.To extract follow this
go to menu bar
system-- list-- save -- local file
alternatively you can take it MBEW table also(se16n)
Maybe you are looking for
-
HT5538 Broke my iPhone so i want to use my iPod touch for imessaging but my imessages wont send
I broke my iPhone and I would like to use my iPod to send iMessages, except everytime i try and send a message they won't deliver. My iPhone and iPod accounts are linked.... so not sure why this is happening. I went into messages settings and made su
-
I have signed into adobe, but unable to click on the create PDF icon? Why?
Has anyone else encountered this problem? if so how did you resolve it?
-
Error when texting on iPhone 4 "this message has attachments which were lost" (there are no attachments) friend has blackberry - help!!
-
I can't download iOS 6 on my iPad 2 it always says error ! Why?
Plz help mere
-
Snapchat and camera apps won't work can anyone help
Can anyone help it hasn't worked for 3 days and it's annoying me