How to Change UI element from input Field to Date Picker
Hi All,
One Custom View is created in which we are pulling some fields from a custom context node created using the value Node.
For one of the field which is already an input field we need to convert it to date picker.
in the GET_P_METHOD
CASE IV_PROPERTY.
WHEN 'fieldType'.
rv_value = cl_bsp_dlc_view_descriptor=>field_type_radio.
WHEN 'radioCols'.
rv_value = '1'.
ENDCASE.
We can change the attribute to clbsp_dlc_view_descriptor_ and bring
checkbox,radiobutton,hyperlink and all but not finding anything for Date picker.
Can anyone suggest a method by which we can convert a UI element to Date Picker.
Any suggestions will be highly appreciated.
Regards,
Sijo
The technical data type for that field should be DATS then input help will automatically come.
Also in get_m method of that attribute should have
metadata = cl_crm_uiu_bt_date_tools=>get_m_date( ir_model_binding = me
iv_attribute_path = attribute_path ).
Regards,
Shobhit
Similar Messages
-
How to change ui element from input field to TextArea?
Dear colleagues,
When I try to add an attribute of type string in Ui configuration, I found it's by default INPUT_FIELD and can not change to text_area, does any one know how to do this?
It will be better if you can tell me how to set text and get text from the text edit.
Thanks and best regards,
AdnersHi,
It's simple. After you use the config tool to align your fields, generate the p_getter for your attribute and put in the following code.
CASE iv_property.
WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
rv_value = cl_bsp_dlc_view_descriptor=>FIELD_TYPE_TEXTAREA.
ENDCASE.
Setting or getting values are not a problem. You can do it the usual way by accessing the model/value bo's attribute values.
Regards,
Arun Prakash -
How to link label with an input field in data table?
I am curious if there is a nice way to link a label to input field in a data table directly in JSP? Data filling the table are dynamically bounded.
Sample, simplified code below. Values of "label" property are unique in the collection binded to dataTable.
<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:jsp="http://java.sun.com/JSP/Page">
<jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" />
<f:view>
<html>
<body>
<h:dataTable value="#{screen$monitoring$errorlog$CorrectHopper.dataset}" var="DATA_ROW">
<h:column>
<f:facet name="header">
<h:outputText value="Name" />
</f:facet>
<h:outputLabel value="#{DATA_ROW.label}" for="#{DATA_ROW.label}_id" />
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Value" />
</f:facet>
<h:inputText value="#{DATA_ROW.label}" id="#{DATA_ROW.label}_id" />
</h:column>
</h:dataTable>
</body>
</html>
</f:view>
</jsp:root>
returns:
17:39:01,390 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
java.lang.IllegalArgumentException: #{DATA_ROW.label}_id
what is related to EL expression in h:inputText's "id" attribute.
Is there any other way to bind label with dynamically created input field in JSP? Do I really have to bind input field directly to component objects with "binding" and set IDs manually with setId() (what is ugly solution because it moves View related logic to Model layer)?I've thought of using EL because I have to somehow
link a label to an input field dynamically. Somehow? Dynamically? Just use plain text :)Well... just look at my code snippet (notice: we want to join the pairs of labels and text boxes placed in a datatable [or any other repeater-like component rendering properties of objects from a collection]):
<h:dataTable value="#{screen$monitoring$errorlog$CorrectHopper.dataset}" var="DATA_ROW">
<h:column>
<f:facet name="header">
<h:outputText value="Name" />
</f:facet>
<h:outputLabel value="#{DATA_ROW.label}" for="#{DATA_ROW.label}_id" />
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Value" />
</f:facet>
<h:inputText value="#{DATA_ROW.label}" id="#{DATA_ROW.label}_id" />
</h:column>
</h:dataTable>
and what is your idea of using plain text as "id" attribute value in this case? :)
Regards,
Michal -
How to subtract the month from an item type Date Picker
Hi everybody!!
I´m building an application (V4.2) in wich customer introduce a date (item P11_F_ACTIVIDAD, Display as Date Picker). I need to sustract the month from that field and use it in a SQL query to fetch all rows from a table that met that condition (column F_ACTIVIDAD) . The WHERE clause should has something like this: WHERE substr(to_char(h.F_ACTIVIDAD,'ddmmyyyy'),3,2)= substr(to_char(:P11_F_ACTIVIDAD,'ddmmyyyy'),3,2) but SQL engine does not see ":P11_F_ACTIVIDAD" like a column name..... Of course, it is not a column name.
I appreciate recomend me an idea to overcome this issue.
Thanks so much!
LuisLecc23 wrote:
Hi everybody!!
I´m building an application (V4.2) in wich customer introduce a date (item P11_F_ACTIVIDAD, Display as Date Picker). I need to sustract the month from that field and use it in a SQL query to fetch all rows from a table that met that condition (column F_ACTIVIDAD) . The WHERE clause should has something like this: WHERE substr(to_char(h.F_ACTIVIDAD,'ddmmyyyy'),3,2)= substr(to_char(:P11_F_ACTIVIDAD,'ddmmyyyy'),3,2) but SQL engine does not see ":P11_F_ACTIVIDAD" like a column name..... Of course, it is not a column name.
I appreciate recomend me an idea to overcome this issue.
Thanks so much!
Luis
In APEX, items can certainly be used as bound variables in a SQL statement; like this.
SELECT emp.ename,
emp.hiredate,
EXTRACT (MONTH FROM emp.hiredate) hiredate_month,
EXTRACT (MONTH FROM :p11_f_actividad) datepicker_month
FROM emp
WHERE SUBSTR (TO_CHAR (emp.hiredate, 'ddmmyyyy'), 3, 2) =
SUBSTR (TO_CHAR ( :p11_f_actividad, 'ddmmyyyy'), 3, 2)
Jeff -
Change the infoobjects from Key fields to Data fields in ODS.
Hi ,
I want to change the few infoobjects from Keyfields to Datafields in ODS.
When i drag the infoobjects in ODS edit screen , then i am getting small pop up..states that "cannot move/delete the Lock objects".
Plz reply me
PrasannaHi Prasanna
Delte the existing data in ODS before doing modifications..
Regards
R M K
Assining points is the only way of saying thanx in SDN *** -
Add data to table view from input fields in a page
Hi
I am developing a BSP page which will be called from SRM shop transaction. After user enters the line item data, data will be passed back to shop transaction using OCI interface and the page attributes (URL).
(1) How can I add data from input fields to table view on a page on a button click? I am able to add first line but I could not retain first line data when I try to add the second line.
I am able to add multiple lines to table view if I use view and controller by adding to the line data to static attribute of the controller. I cant use the controller and view because I can not set the attribute to Controller automatically.
(2) Is there a way to pass an attribute (URL) to controller from SPRO? Like we pass an attribute to page automatically (Automatic page attribute).
(3) How can I call a controller and view and pass the page attribute to the controller on a button click from a page with out controller?
Thanks
SreenivasI'm trying to test the merge with the following data in a test.txt file:
ZZZZZ114923000004
1234Z400660000001
ZZZZZ114923000010
Getting an error:
SQL> @C:\dataformats\sql\pc12seriesMerge.sql
Directory created.
SP2-0552: Bind variable "17" not declared.
SQL>
here it the pc12seriesMerge.sql file
set serveroutput on
create or replace directory user_dir as 'c:\dataformats\incoming\';
DECLARE
v_filename VARCHAR2(100); -- Data filename
v_file_exists boolean;
v_file_length number;
v_block_size number;
f utl_file.file_type;
s varchar2(200);
lineString varchar(200);
v_account varchar(5);
v_IDN varchar(6);
v_quantity varchar(6);
BEGIN
v_filename := 'TEST.TXT';
DBMS_OUTPUT.PUT_LINE(v_filename); --shows filename
utl_file.fgetattr('USER_DIR', v_filename, v_file_exists, v_file_length ,v_block_size );
IF v_file_exists THEN
dbms_output.put_line('File Exists');
create table ext_table (
account varchar2(5),
idn number(6),
quantity varchar2(6)
organization external (
type oracle_loader
default directory user_dir
access parameters (
records delimited by newline
fields (
account position(1:5) char(5),
idn position(6:11) char(6),
quantity position(12:17) char(6)
location ('test.txt')
reject limit unlimited;
MERGE INTO id_req_stg t
USING (
SELECT account,
idn,
decode(quantity, '-', 0, to_number(quantity)) as quantity
FROM ext_table
) v
ON ( t.account = v.account AND t.idn = v.idn )
WHEN MATCHED THEN
UPDATE SET t.quantity = v.quantity
DELETE WHERE t.quantity = 0
WHEN NOT MATCHED THEN
INSERT (account, idn, quantity)
VALUES (v.account, v.idn, v.quantity);
ELSE
dbms_output.put_line('File Does Not Exist');
END IF; -- file exists
EXCEPTION
WHEN UTL_FILE.ACCESS_DENIED THEN
DBMS_OUTPUT.PUT_LINE('No Access!!!');
WHEN UTL_FILE.INVALID_PATH THEN
DBMS_OUTPUT.PUT_LINE('PATH DOES NOT EXIST');
WHEN others THEN
DBMS_OUTPUT.PUT_LINE('SQLERRM: ' || SQLERRM);
END;
/ -
How to implement SEARCH HELP for input field in WDA
Hi All,
I am doing a tool for my team. in this tool there are 4 input fields to show different processes. I implemented the 4 input fields and also bind the respective tables to these fields successfully. Actually I want to filter the data between 2 fields . Means the data in the 2nd input field should be based on the 1st input field. Means when I'll select for example 'CHI' (code for CHINA) in the 1st input field the 2nd field meant for country name should show all country name with value 'CHINA'. But the problem is that all values related to each field are in different table with no foreign key relationship and also some combinations are in single table..
I have tried the import and export parameter method for search help but no luck till now.
Can anyone please suggest me how to implement this scenario..
Thanks in advance...
sekharHi sekhar,
Your Requirement can be implemented by OVS(Object Value selector) This is the custom search help .So that you can define on what basis the value has to be fetched.
Look at the below link
http://wiki.sdn.sap.com/wiki/display/WDABAP/ABAPWDObjectValueSelector(OVS)
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/606288d6-04c6-2c10-b5ae-a240304c88ea?quicklink=index&overridelayout=true
You need to use the component WDR_OVS.
It has 3 phases
In phase 1
You will fetch the value from input field to F4 help dialog box.
In phase 2
You will generate the search results , in this phase look for the input value given in field 2 and accordingly generate search result for the field 3.
In phase 3
The selected value will be returned to the original screen.
Regards
Karthiheyan M -
How to change the order of the fields in the queryoutputnode in OVS.
How to change the order of the fields in the queryoutputnode in OVS.
The actual requirment is to re-arrange the elements of the queryoutput node, to look more organised
say for ex.
Seq 1:
c code company name g/l ac g/l ac description
Seq2 :
g/l ac description c code g/l ac company name
Seq 1 way of representation is more organised that Seq2. How can we achieve this re-arranging of ordering in the queryoutputnode. -
How to adjust the text in input field
Hi Expert,
New in VC development. Can someone guide how to adjust the text in input field? Because of long text length it is not displaying fully in visual composer iView so user are not able to see the entire text in input fieldsHI Kundan,
I assume that you have already tried different options perent in Label Postion for the field.
If none of these options meet your requirement then you can try the following workaround:
In the display properties, select label position as no label.
In the form view add a new UI Control for Plain Text or HTML text and change its Label to "Material Number".
Now place this new UI Control in before your actual Input field such that it appears as the field label.
Hope this helps.
Regards,
Rk -
WebDynpro Java: how to remove blank element from Table and Dropdown.
Hi Folks
In a webdynpro application,
I created a table and witten the below code to populate the table
IPrivateDummyView.IFirst_TableElement First_Table_Element = null;
First_Table_Element = wdContext.nodeFirst_Table().createFirst_TableElement();
First_Table_Element.setF_Value("One");
wdContext.nodeFirst_Table().addElement(First_Table_Element);
First_Table_Element = wdContext.nodeFirst_Table().createFirst_TableElement();
First_Table_Element.setF_Value("2");
wdContext.nodeFirst_Table().addElement(First_Table_Element);
As per the code, i got 2 row in the table.
But , i have one Empty row on top of the table , how to get ride of this.
i find the same problem happening with dropdown too, where i used DDBI, i populated a the content as mention, but i initial 2 row as blank and then i have my own elements ,as per my code.>
> how to remove blank element from Table and Dropdown
>
Change selection property of related node to from 0..1 to 1..1 (mandatory)
Re: DropdownByIndex and empty line (Thread: DropdownByIndex and empty line )
Re: Can the empty selection be removed from element dropdownbykey(Thread: Can the empty selection be removed from element dropdownbykey )
Edited by: Anagha Jawalekar on Nov 18, 2008 10:28 PM -
How to do ICON_EXPAND and ICON_COLLAPSE input fields in module pool screen?
hi frnds.
My problem is in module pool screen how to do ICON_EXPAND and ICON_COLLAPSE input fields in module pool screen?And how to do GUI STATUS and GUI TITLE? IN SE80.
ITS URGENT.POINTS WILL BE REWADED.THANKS IN ADVANCE.Hi,
Go through this thread.
[expand and collapse|expand and collapse]
Cheers,
Simha. -
How to change the lenth of existing field in sap standard table
Hi all,
can anybody help,my requirement is, how to change the length of existing field in sap standard table....
thanks in advance..Which field are you thinking of in particular? Are you wanting to increase or decrease the length?
Some fields are used so extensively that a change to their length will mean adjusting many tables, some of them potentially very large, and hence taking a long time to adjust.
Some standard SAP programs expect certain fields to be of specific lengths and won't work if the length is changed.
Some screens could cease to work.
If you decrease length, then you could lose data.
matt -
How to prepopulate value in webapps input fields or for any custom fields in for any other forms?
What do you want to populate the form with?
-
How to change mobile network from At&t to verizon
how to change mobile network from At&t to verizon
What exactly are you trying to do?
You can't "change the mobile network"?
What device model number do you have?
Has it worked previously? -
How to change the width of a field?
Hi all,
I would like to decrease the width of a field on my report.
But I can't do it in the Property palette. I am not able to change the width property. The width of the database column is varchar2(255). I do not want to decrease the length of the database column, but only the width property of the field.
Any ideas?
RegardsAs far as I knows, you can only increase the width of a
character column. If you wish to decrease it, I would think
you'd have to drop/delete the whole column and recreate it,
loosing all your data in the process (unless you create a
temporary table into which you copy the data first, and then
copy it back into the "new" column - the oracle db will truncate
the data automatically).
SQL Plus is very well suited for the task, but requires you to
write the appropriate SQL statements yourself. Other tools may
simplify this for you (I use SQL Plus myself).
Hope this helps.
Eric (guest) wrote:
: Hai, How to change the width of the field in a particular
table.
: I try to do so by using 'Schema Builder ver 6.0', but the
result
: come with a message like below :-
: OBE-15472: Cannot decrease length of existing column
: 1. where should I be to modify the column width ?
: 2. is SQL Plus 8.0 can do so? if yes, what's the syntax ?
null
Maybe you are looking for
-
Oracle report generation jobs problem
Hiii, We have installed the Oracle Clinical 4.6 version forms and report server is installed in same server. After installation we tried to submit the job . The job is successfully submitted but the problem is the status of the job is always set o Su
-
Yesterday I had problems with the website Myfitnesspal.com. I have a tab set to automatically open when I start the browser every day. I could not log any information into the site, so I tried a log off and log on. It won't let me log on to the site.
-
Change error tag names of the Response xml of a vanilla Inbound Webservice
Hi, I am invoking a vanilla inbound webservice "Service Request" through Soap UI. Whenever any error occurs, in the response xml, some tags like "siebelf:error" is generated in the xml. However these tags are not present in the IO.My question is, can
-
Problem connecting Mapview to Oracle Database(Add a data source)
Im a neophyte to the mapviewer and Ive run into a very primitive problem. I cant view the sample maps in the mapviewer. I cant connect to the database where I've loaded the sample oracle data (mvdemo.zip) to the database. I have the mapviewer run
-
How to indentified work orders created for an trasfered asset in EAM
Dear All, We have a businees requriment, where we need to list of workorders created for an asset which has been transfered from one EAM org to another EAM org. Business case : 1.We have an asset BX3003 in WSB (eAM org), i have performed move asset t