Mandatory input field in View
Hi All,
Mandatory input field in group
In my web dynpro application i have marked the input field "required" and in output it shows with red asterisks...
In my view i have 2 group elements with different fields. I am using method *check_mandatory_attr_on_view* to get mandatory fields in view, its not returning all mandatory fields in view. its just returning mandatory fields in first group.
Has any one faced this kind of issue before? Is there anything additional to be done?
Thanks
Rajesh Yadla
Depending on which NetWeaver SPS your are,
there are some errors in this method,
so better use the other method (CHECK_MANDATORY_ATTRIBUTES).
This seems to work well.
Check also SAP Notes:
[Note 1026272 - WDA: Mandatory check on view of multiple context nodes|https://service.sap.com/sap/support/notes/1091460]
[Note 1091460 - WDA: CHECK_MANDATORY_ATTR_ON_VIEW checks only LeadSelection|https://service.sap.com/sap/support/notes/1026272]
Similar Messages
-
0CFM_MARKET_VALUES: PARAM_P_AUSWT as mandatory input field
Hi BW fans
The datasource 0CFM_MARKET_VALUES includes one mandatory input field.
Just for the case that there are no entries for this field in the source system, how do you prevent this error message and aborting of the extraction?
Field PARAM_P_AUSWT(Evaluation Type (Risk Management)) is a mandatory input field; enter a value
Message no. RSM1059
Thanks
BEOYou have quotation issues. Something like this:
onBlur="alert("test");"will blow up because the parser will match the wrong quotes. You have to either escape your quotes, or use single quotes internally.
onBlur="alert('test');"or
onBlur="alert(\"test\");" -
Checking All mandatory Input fields .
Hi All,
I have a general checkMandatory function which is working fine wiht current InputFields on view.
Now, When I add another row of input fields on that form I want them also to be checked through checkMandatory function.
How can I perform this as I want them to be checked only at the click of button.
Can I iterate through all UI elements in OnAction and then do something?
Please guide!
please reply soon1
SumitHi,
This is my checkMandatory code:
public void checkMandatory( java.lang.String displayName, java.lang.String fieldContextID )
//@@begin checkMandatory()
IWDMessageManager messageMgr =wdThis.wdGetAPI().getComponent().getMessageManager();
String attributeValue = wdContext.currentContextElement().getAttributeAsText(fieldContextID);
IWDAttributeInfo attributeInfo =wdContext.getNodeInfo().getAttribute(fieldContextID);
if (attributeValue != null)
attributeValue = attributeValue.trim();
if (attributeValue.length() == 0) {
//String fieldLabel = this.wdContext.getNodeInfo().getAttribute(displayName).getSimpleType().getFieldLabel();
messageMgr.reportContextAttributeMessage(wdContext.currentContextElement(),attributeInfo,
IMessagePoInvoice.EMPTY__INPUT,
new Object[] { displayName },
true);
I have also done the simple types thing. It is not working. Do I have to change any other property.
Can't I do it by iterating through all elements and then checking for mandatory Inputfields and calling checkMandatory function for them.
please reply soon!
Sumit -
Input field property state required
Hi
Just curious to know what is the purpose of a State property for an InputField ? Normal Item & Required are the possible values.
Regards,
Murali.Hi Murali,
I would like to explain the need for the 'STATE' property of an input field in WDA with an real-time example,
You have requirement that you need to display a Sales Order Document based on the inputs that the user gives namely Sales Order No., Material, Material No. etc..,
Out of the few user inputs the Sales Order No. is the madatory one with which you an display the sales order document.
So when you are creating a screen with all those user input you can define which user input should be mandatory one. In our case it is the Sales Order Number whose state should be mandatory one.
If you make this input as a madatory one, then the WDA takes care of during the Run-time. i.e. You will not allowed to go the next page unless you fill the mandatory input field.
Hope it helps.
Regards,
Maheswaran.B -
How can we change the input field on a view stop showing zeros
Hello,
To make screen look consistent with other character input field. How can we change the input field on the view stop displaying zeros even though the data type is NUMC and data type should not be change?
Edited by: sap_learner on Mar 25, 2010 5:44 PM
Edited by: sap_learner on Mar 25, 2010 5:49 PM
Edited by: sap_learner on Mar 25, 2010 5:55 PMhello Manas Dua,
Thanks for your help. I am able to resolve my problem.
My code will help the future comers to resolve this kind of issues.
*The code is applied to method WDDOINIT of the default view.
DATA lo_nd_terms_input TYPE REF TO if_wd_context_node.
DATA lo_nd_terms_input_i TYPE REF TO if_wd_context_node_info.
DATA lv_zeros TYPE wdy_attribute_format_prop.
lv_zeros-null_as_blank = 'X'.
lo_nd_terms_input = wd_context->get_child_node( name = wd_this->wdctx_input ).
lo_nd_terms_input_i = lo_nd_terms_input->get_node_info( ).
lo_nd_terms_input_i->set_attribute_format_props(
EXPORTING
name = `ENTER THE ATTRIBUTE NAME`
format_properties = lv_zeros ).
Edited by: sap_learner on Mar 26, 2010 5:02 PM -
Input field in a table view control
Hi,
I have a table view control, with input field in one of the columns.
That is meant for entering some values.
My problem is when i am entering a 3 input field with value and then by using mouse control i enter say 20th input field with value. After that when i use the directional keys to enter the 21st field, the cursor is not in 21st field, it is somewhere else.
How to correct this problem.
Regards,
VijayalakshmiHi,
Try to use the TABINDEX property of <input>.
Best regards,
Guillaume -
How to get the value from the Input field of the Table view.
Hi Experts,
I have created a table view with 10 rows and each rows contains input fields in it.Can you please help me getting the values that are entered in all 10 rows.
Currently I am using the below code,but using the below I am able to get only the first row details of the table.
lo_el_table->get_static_attributes(
IMPORTING
static_attributes = ls_table).
Please let me know you suggestions on this.Thanks in advance.
Regards,
ArunHi Arun,
You should use this method:
lo_nd_table->get_static_attributes_table(
IMPORTING
table = lt_table).
Cheers,
Roelof
http://www.nl4b.com -
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;
/ -
Enable input fields in a view container
Hi,
I have inserted a view in another view's view container.
But the input fields are disabled.
can anybody tell me how to enable them?
readonly property is set to false...Hi..
This situation may arise when the attributes (mapped to the input field in the view) are mapped to the interface controller via the component controler and the IsInputElement property of the node in the interface controller is set to True.
In this case you cannot change the cardinality of the node from the component controller also.
If this is the case, try by removing the interface controller and component controller binding.
Regards,
Sayan Ghosh -
How to make a field Mandatory in a Table view?
How to make a field Mandatory in a Table view?
The requirement is, the user should not be able to append a new Row, unless and untill he enteres the data in the column SOLD-TO. Now how do i acheive making this field madatory. Normally in Edit form view, we can go in customizing and flag Mandatory, for table view we don't have this option.
Please can anyone of you guide me in this approach?
Jagadish.GHi Jagadish,
have a look in this thread, part of the code you can use in eh_insert method or logic to write enable/disable insert button.
Re: Assignment Block Mandatory
regards
Ismail
Edited by: Ismail Shaik on Oct 21, 2009 11:36 AM -
Not able to display the values in the input fields of the view
Hi All.
I am facing an unique issue.
My custom element created in my custom node getting a null value
from a Get Vendor Details RFC written in RFC.
The values are getting populated in the custom element but not coming in the
input field of the corresponding view.
Then, I wrote this code
wdContext.nodeCustom.setLeadSelection(1);
and all the output came in the input field.
Now, after a build it is not coming in the input fields of the view.
All my custom nodes are Singleton and values are coming in the custom elements
as I can print them by wdComponentApi.getMessageManager.reportSuccess(""+customnode.getField());
All my nodes are Singleton.
Please give your valuable inputs.
Regards
Kaushik BanerjeeHi
Check the node property
initializeLeadSelection true
if not make it true , I would suggest to make a value node of the same structure as in RFC after execuation of the RFC populate the value manually.Dont bind it directly to the UI element.
BR
Satish Kumar -
In BSP how to give the input field as mandatory?
Hi friends,
In BSP how to give the input field as mandatory?
In BSP i want to validate the input field (example checking the material no is valid or not)
if this material no doesnot exit means i want to pass error message.What is the code for that.
Moosahi
try this
in LAYOUT
<htmlb:inputField id = "vname" disabled = "False" value = "<%= v_visitor %>"/> <font color="red" size="2"><b><%= page->messages->assert_message( 'vname' ) %></b></font></td>
in DO_HANDLE_EVENT
in oninputprocessing
CLASS CL_HTMLB_MANAGER DEFINITION LOAD.
IF event_id = CL_HTMLB_MANAGER=>EVENT_ID.
DATA: event TYPE REF TO CL_HTMLB_EVENT.
event = CL_HTMLB_MANAGER=>get_event( runtime->server->request ).
IF event->name = 'button' AND event->event_type = 'click'.
DATA: button_event TYPE REF TO CL_HTMLB_EVENT_BUTTON.
button_event ?= event.
ENDIF.
case event->id.
when 'select'.
if v_visitor = ''.
page->messages->add_message(
condition = 'vname'
message = 'Visitor Name can not be blank'
severity = page->messages->CO_SEVERITY_ERROR ).
ELSE.
here u can write ur when ur field getting filled
endif.
endcase.
endif.
give marks if it is helpful
thanks -
Mandatory selection input field in SAP query
Can anyone please let me know how we can make a selection field input mandatory in SAP query,If we can?
we can make a selection field input mandatory in SAP query by giving the option *OBLIGATORY * with the SELECT-OPTIONS for the required field.
This addition defines the input field of the parameter on the selection screen as a required field. If no entry is made in this field, the user cannot use the Execute function (F8) to exit the selection screen, they can only use the functions Back, Exit, or Cancel.
Reward Points if useful. -
ADF: Mandatory symbol for ReadOnly input fields
Hi All,
I am using JDeveloper 11.1.2 version. I am creating sample login window. In that there is Input Text filed called "old Password" which should be readOnly always [It will display oldPassword value]. When I ran my page in OldPassword field, mandatory symbol is not displaying. Eventhough I gave required="true" and showRequired="true" in jsff file, I am getting same output. The input Text is not ViewObject based. I am just binding ManagedBean variable value to that Input field to display oldPassword value.
Can u please help me out?
Regards,
Praveen.This is the normal behavior, as a workaround you can surround the input text with af:panelLabelAndMessage and set its showRequired property to true.
<af:panelLabelAndMessage id="plam1" showRequired="true">
<af:inputText label="old Password" id="it1" readOnly="true" value="value"/>
</af:panelLabelAndMessage> -
How to make input field as mandatory field in sub screen
Hi All,
I need to display the input selection parameters in tab strip sub screen. The input screen is not giving an error while processing with blank values, but I made the input field as required in sub screen input filed settings. Can some one please help me how to make the input field as mandatory field in sub screen.
Thanks in advance.
Regards,
KannanHi Kannan,
Try this out.
1. Goto screen painter
2. Enter the program name and screen number ( screen # 1000 - in case if its a custom report prg)
3. Double click on the field which u`ve got to make mandatory.You`ll get Screen painter attributes window.
4. U`ll find three tabs here - Dict, Program, Display
5. Go to Program tab, and change the first attribute - Input field`s input value as "Required".
6. Save and activate it.
7. Now execute ur program and this should make ur field as mandatory on the screen.
This works with input fields, but I`m not sure about the input field in tab strip control.
Hope this helps
Regards,
Farhana
Maybe you are looking for
-
Stock valuation at store level
Hi Experts I've added the charactaristic 0STOR_LOC to cube 0RT_C36 to have stock cost by store, however, it's not working as expected, totals for any other characteristic (plant, material, month, day .. ) and ratios quantity and stock value are worki
-
help, yesterday when my itunes came up i recvd a prompt to update to 6.0 which of course i did. now it will not load, the qucik time 7.0.3 recvd a error code of -3, any idea what is going on? now my itunes will not run. any way to go back and get my
-
Photoshop CS4 Extended Win XP x64 Help files (Documentation) Prob
Hi I have just updated to CS4 extended. Help>Photoshop Help [F1] Launches the default browser taking me to http://help.adobe.com/en_US/Photoshop/11.0/search.html?AH_ION=true with a link to http://community.adobe.com/help Why no application documentat
-
How do I move a 3D object in 2D space?
I'm trying to get used to the new way of doing things in CS4. Once I've created a MC and rotated it in 3D, how can I move it across the screen w/o rotating it further? I have a MC that rotates over several frames, and once it reaches the last one, I
-
Oracle BPEL Process Manager error
I am getting the following error in activities tab in BPEL Process instances / activity and i am also not able to see the flow diagram of bpel process i created and deployed , please check and provide any solution / share solutions (message is pasted