Wednesday 17 August 2011

How to make field readonly, required and set value null

By using maximo api we can make fields read-only, required and set values null to the attributes:

To make field Readonly: setFieldFlag("<attributename>",7L,true);
To make field Editable: setFieldFlag("<attributename>",7L,false);
To set value as null: setValueNull("<attributename>",2L);
To make field Required: setFieldFlag("<attributename>",8L,true);

3 comments:

Esteeangel said...

How do I set the Classification Field in the create service request form mandatory such that a user can not submit without filling in data on that field.
thanks

Maximo Reddy said...

Hi Esteeangel, you can do this by using application designer:
1. Go to application designer
2. select CREATESR
3. Select the "Classification" field and control properties.
4. Give inputmode = Required.
5. Save it.
6. Now go to create SR application, now you can see that field is mandatory.

aathi shiv said...

hi all
i wish to ask you one thing, that i have created a new dialog box through “cui” in library.xml and added some required field as aln value 3 date time fields also all required aln value are arise error when left blank but the 3 date field arise nothing when i left blank ,kindly help me what may the problem with that?

thanks
aathishivan

Maximo SOAPUI error javax.xml.ws.WebServiceException

SOAPUI error while sending payload to below url (in cluster environment) http://localhost:9080/meaweb/services/MXASSET Error : <f...