OAF Personalization-Making a field Required.
I have a custom OAF page which has a Message text input field and is currently is a required field, Using personalization i wanted to make this a optional filed. But when i select that personalization properties, i dont see the option "required" and its values.
Layout structure: Message Component Layout->Message Layout->Default single column-> Message Text Input field.
Thanks
Vishnu
Vishnu
Read only property is not controlled through personalization.What you need to do is extend the controller of the page and in the processRequest of the page use following code.
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext,webBean);
OAMessageTextInputBean mtb = (OAMessageTextInputBean)webBean.findChildRecursive("Bean ID");
mtb.setRequired("no");
}Thanks
AJ
Similar Messages
-
Forms Personalization - Making a field required
Does anyone know how to use Forms Personalization to make a field required?
I haven't been able to get this to work. I'm trying to change the Returns form in Receiving to force the user to enter a reason code when they do a return. When does the WHEN-VALIDATE-RECORD event occur? Is it when you press SAVE? I've set it up to give the user an error message when the reason_code field is null, but it's not working. It allows me to save with a null reason_code.
Thanks for your help. -
I am trying to make sure that fields are populated with data prior to moving to the next field, but it seems that simply making the field required is not sufficient. What else must I do to enforce data entry within required fileds?
Thank you,There are a variety of scripting techniques that can be used based upon the form requirements, UI aesthetics, designer preference,... The script below forces data entry into a text field object called 'tf1' but it is a dangerous practice and should be used carefully. You may find yourself in a infinite loop based upon the tab order. A safer pattern includes global field validation upon submit.
// form1.page1.subform1.tf1::exit - (JavaScript, client)
if (this.isNull) {
xfa.host.messageBox("tf1 is a mandatory field.","Text Field 1 Error",0);
xfa.host.setFocus("form1.page1.subform1.tf1");
Steve -
IC Webclient - making a field required
On the BupaSearch View, I want to make some other fields required before you can successfully create an account. Right now Country is the only one. Country does not use the tag REQUIRED = "TRUE". Even if I do used this tag, it really doesn't have any affect except to put an * or outline the box in red. So I was trying to copy the logic that the field country uses, but I have no idea where this is done. I've been searching and I need your help. Does anyone know?
Thanks.Hi Cathy,
You can try to have a method R-Getter (required) as follows -
METHOD get_r_brand .
IF get_brand( attribute_path = '' ) IS INITIAL.
rv_required = 'TRUE'.
ELSE.
rv_required = 'FALSE'.
ENDIF.
ENDMETHOD.
And in the view:
<crmic:label design = "label"
required = "<%= ApplianceData->get_r_brand( ) %>"
for = "//ApplianceData/Brand" />
But this code will also add a star against the label and the star will go off only after some value is input to the field.
See if it is still helpful.
Regards,
Abhishek ! -
How do I make certain fields in my schema panel a 'required' input. I have the xmp documentation that discusses this but am unable to figure out how the implement this.
thanks
grahamThe code below works after an opportunity record is saved for the first time. If a new record is created, the code does not work
We want to make the competitor product name field required if the competitor field is set to 'Acme'. If the competitor field is not 'Acme', then let it pass validation.
This code is in the field validation area of the Competitor field and the Post Default box is checked
('<IndexedPick3>'= 'Acme' AND [<plC2_My_Position_ITAG>] IS NOT NULL) OR ('<IndexedPick3>' <> 'Acme')
Any ideas why it would work only if the record has been saved? -
Making hidden fields required...
I am currently building an interactive form on Acrobat Pro 10 and have a field hidden until a specific radio button is selected. I need hidden field required when visible, but if I make it required, it is required when it is hidden as well. I am only slightly familiar with javascript, is that the only way to do it?
Yes, JS is the only way to do it. If you're already using a script to
show/hide the field, you can also use the same script to make the field
required (or not). -
Self Service Personalization Making a Flex Required
I have added a flex field into my self service pages for iProcurement/Requisitions and it is working fine. The user base would like the field to be required but we cannot require it at the DFF definition because that would break PO's for us. Is there a way to make this field (a simple poplist of 4 values) to be required in Self Service pages without checking it as required in the FF definition? I see other field types like a Messgae Choice and the like have a "required" attribute, but the Flex does not.
Any thoughts?I haven't been able to get this to work. I'm trying to change the Returns form in Receiving to force the user to enter a reason code when they do a return. When does the WHEN-VALIDATE-RECORD event occur? Is it when you press SAVE? I've set it up to give the user an error message when the reason_code field is null, but it's not working. It allows me to save with a null reason_code.
Thanks for your help. -
XD01 - Making Dunning field required
I know that I can add code to EXIT_SAPMF02D_001 for this, but is there an easier way to make the dunning procedure field on XD01 a required field? Thanks
You can do this via SPRO. Here is the path:
Financial Accounting>Account Rec and Payables>Customer Accounts>Master Data>Preparation for creating Customer Master Data-->Define Account Groups with Screen Layouts (Customers).
Select the Account Group and Click details button. In the Field Status section, select Company Code Data and hit the Edit Field Status button. Double Click Correspondence. You would find Dunning Data there as an option with various radio button. Click the Req. Entry radi button to make it mandatory. Save and test.
Hope this helps! -
Short Dump while making a fields as required in BDT object screens
Hi,
I'm making a field as "required" by checking the required button on that field in the BDT screen.
But am getting a short dump when I'm trying to use that screen.
It seems like some data is getting converted to bad format due to this (am not fully sure about it.)
Any idea on this.
Thanks & Regards,
Vipul.Hi Pinaki,
The entire functionality is working absolutely perfect if I dont check that field as "Required" .
I'm not sure if I'm missing some customising or is it a problem with BDT.
Thanks & Regards,
Vipul. -
Making the comments field Required in the Workitem
Hello,
I have a GP Application wherein the initiator fills out a form which goes to the Approver using Visual Approval Callable Object.........now when the approver opens the workitem he sees the information entered by the initiator and a comments field at the bottom......we want to make this field required for them.......how can we achieve this.....while creation of the Visual Approval Callable Object i see the comments as a output parameter with the 'Is Required' checkbox option....but it is disabled and does not allow you to select it......Please help...
Any help would be highly appreciated...
Regards,
AnilHi Anil,
Standard Visual Approval CO doesnt work like that.
Either you can create your own CO.
OR
i can suggest you as follows, but it is making little complicated process.
1. Create one Action with Business Logic callable object, which will check for Comment EQ space or not and have 2 different states.
a. If Comments is blank, Go back to Approval Action
b. If Comments is entered, Proceed for further actions.
2. Set this action as target for Approval Action.
Hope this helps you.
Thanks,
Tejaswini -
Form Personalization - Make field required based on LOV selection
Newbie here.
I am trying to make a field required based on the selection of the LOV that is next to it. Having a heck of a time with it.
The form i am working on is the Sub Invenntory form that you get to via Organization Items. We want the subinvnetory field to be manditory when subinv is selected from the LOV in the sources tab.
here is what i have so far:
CONDITION
Trigger Event: WHEN-VALIDATE-RECORD
Trigger Obj: ITEM_SUBINVENTORIES
Condition: ${item.item_subinventories.SOURCE_TYPE.value} = 3
Action
Type: Property
Object Type: Item
Target Object: ITEM_SUBINVENTORIES.SOURCE_SUBINVENTORY
Property Name: REQUIRED
Value: TRUE
The problem seems to be that i can't get the field to be required. It shows up yellow but still allows me to save w/ the field being blank.I do not know about the particular form that you are trying to personalize, but whenever I have created a condition, it has usually been in the following syntax:
:BLOCK_NAME.FIELD_NAME = 'VALUE'
For example, :MTL_SYSTEM_ITEMS.PRIMARY_UNIT_OF_MEASURE_MIR = 'SEAT'
Yours seems to be very much different from mine, but then again, I am not technical so I cannot comment intelligently on that aspect.
May be that is the problem.
Also, once you get it to work, you might want to also add a condition where the field is turned to un-required when the SOURCE_TYPE is NOT 3. -
Making fields required based on other field input
I am creating a form in adobe acrobat pro that employees need to fill in to show the clients they have worked for in a week. The form has 10 lines for them to fill in the date, client name, address etc for 10 clients. I want to make the client name and address fields required only if the date has been filled in in the first column. I can't make every row required fields as they may not have 10 clients that they have worked for. I have a send button set up so that all required fields are completed before the form can be sent. Can someone help me with the script I would need. I have worked out how to make the fields required if a check box is ticked but can't find any scripting for fields to be required if text has been entered in a specific field.
You can use the custom validation script of the date fields. Let's say you
want to make Name1 and Address1 required if Date1 is not empty.
Use this code to do it:
this.getField("Name1").required = event.value!="";
this.getField("Address1").required = event.value!=""; -
Making "Business Place" field Required in MIRO
Dear fellow SAPers,
Can anyone please tell me how to maintain the status of "Business Place" field in MIRO as Required? The client wants to ensure that this field is populated everytime MIRO is done, irrespective of the user.
Please Help,
Thanks,
Amit BhartiHi,
To make the business place field required for MIRO, you can write the validation as below:-
Step 1:-
Create a message ID via transaction code SE91 for message class /EACC/MSG/ACC_COMP.
Step 2:-
Go to transaction GGB0 and create the validation step at line item level in Financial Accounting as below:-
Pre Requisits:-
BKPF-TCODE = 'MIRO' AND BSEG-BLART = 'K'.
Check:-
BSEG-BUPLA = ' '.
Message:-
Message created in step 1 as error message.
Step 3:-
Please also check that this validation has active status (Status=1) at line item level for your company code in transaction OB28.
Regards,
Gaurav -
Making a Text Field Required if User Checks box
Hi,
I am currently using Adobe Designer 7.0, and am trying to make a text field required if a user clicks on a check box above the text field.
I have the following code for the check box (on Change) but it doesn't appear to be working!! Any suggestions??
Thanks!
if (this.rawValue == 1 ){
TextField7.value = "User Entered - Required";
else {
TextField7.value = "User Entered - Optional";Hi Krisitan,
you are trying to change the value of the field instead of it's accessability.
Try this:
if (this.rawValue == 1 ){
TextField7.mandatory = "error";
else {
TextField7.mandatory = "disabled"; -
Making a form field required when another field is selected
I have a contact form with the usual fields required (name, address, city, etc.). I'm adding a Country pull-down list to the form, which will default to the US being selected. Since a "State" field is not relevant for anyone filling out the form from another country, I'd like to make the State field required only if the country selected is United States, and not required for any other country. Is there a way to do this?
Thanks,
R-CoWhat you need is to be able to create a required textfield when the first textfield shows USA and destroy the required field when another country is selected.
The following may help to understand create and destroy
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Deleting and rebuilding validations</title>
<link href="http://labs.adobe.com/technologies/spry/widgets/textfieldvalidation/SpryValidationTextFiel d.css" rel="stylesheet">
</head>
<body>
<form id="form1" method="post" action="#">
<p>
<input type="radio" name="radio" id="Married" value="Married" onclick="val(this);">
<label for="Married">Married</label>
</p>
<p>
<input type="radio" name="radio" id="Defacto" value="Defacto" onclick="val(this);">
<label for="Defacto">Defacto</label>
</p>
<p>
<input type="radio" name="radio" id="Single" value="Single" onclick="val(this);">
<label for="radio">Single</label>
</p>
<hr>
<span id="sprytextfield1">
<label for="f_married">Married</label>
<input name="married" id="f_married" type="text" value="">
<span class="textfieldRequiredMsg">A value is required.</span>
</span>
<span id="sprytextfield2">
<label for="f_defacto">Defacto</label>
<input name="defacto" id="f_defacto" type="text" value="">
<span class="textfieldRequiredMsg">A value is required.</span>
</span>
<span id="sprytextfield3">
<label for="f_single">Single</label>
<input name="single" id="f_single" type="text" value="">
<span class="textfieldRequiredMsg">A value is required.</span>
</span>
<hr>
<input type="submit" value="Submit" />
</form>
<script src="http://labs.adobe.com/technologies/spry/includes_minified/SpryValidationTextField.js"></script>
<script>
var sprytextfield1,
sprytextfield2,
sprytextfield3;
// build validations and delete / destroy them
function val(e){
// get the value
value = e.value;
// see what radion button we have
if(value == "Married"){
// if there inst a validaton build one
if(!sprytextfield1){
sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1");
// if there is a validaiton in sprytextfield destory it, and clear the variable
if(sprytextfield2 && sprytextfield2.destroy){
sprytextfield2.resetClasses();
sprytextfield2.destroy();
sprytextfield2 = null;
// same as the rest
if(sprytextfield3 && sprytextfield3.destroy){
sprytextfield3.resetClasses();
sprytextfield3.destroy();
sprytextfield3 = null;
} else if(value == 'Defacto'){
if(!sprytextfield2){
sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2");
if(sprytextfield1 && sprytextfield1.destroy){
sprytextfield1.resetClasses();
sprytextfield1.destroy();
sprytextfield1 = null;
if(sprytextfield3 && sprytextfield3.destroy){
sprytextfield3.resetClasses();
sprytextfield3.destroy();
sprytextfield3 = null;
} else if(value == 'Single'){
if(!sprytextfield3){
sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3");
if(sprytextfield1 && sprytextfield1.destroy){
sprytextfield1.resetClasses();
sprytextfield1.destroy();
sprytextfield1 = null;
if(sprytextfield2 && sprytextfield2.destroy){
sprytextfield2.resetClasses();
sprytextfield2.destroy();
sprytextfield2 = null;
// proceed with the rest as normal
return true;
</script>
</body>
</html>
Maybe you are looking for
-
ITunes 10.6.3 is in my downloads, but when I click nothing happens?
I downloaded iTunes 10.6.3 because thats what I need to plug my phone in, but I click on the download after it's complete and it brngs me to my iTunes but nothings changed. What do I do I just need this update!!?
-
Class Not Found Exception when saving in Backend?
Hello all, we are using JBOSS, Hibernate, Flex 3 and BlazeDS. I have added a class ProjectDocument and it is configured identically to an existing class PartDocument. I can successfully load the class in front end, but the save of the class leads to
-
WD10EADS hard drive is discontined what is replacing it?
I have an HPE 210y BiosHD8 error, I am using HP XD2000 business computer still alive, year old quad is junk is it HDD or motherboard, tell the truth now HP.
-
HT5372 How do I get the blackrain application in iCloud?
How do I get the blackrain application in ICloud?
-
Best Practice Directory Structure
I'm new to programming and I'm creating a large application that will have a lot of pages and components. As I continue to add to the project, I find it harder and harder to easily locate the pages and components that I need to work with. To help me