cancel
Showing results for 
Search instead for 
Did you mean: 

Highlighting Multiple Input Fields

0 Kudos

I am not able to invoke reportcontextattributemessage after definigthe attribute pointer

Accepted Solutions (1)

Accepted Solutions (1)

satyam
Explorer
0 Kudos

Hi Suman,

based on simple input field example here i have written code for your understanding

assume that Vendor is the node along with lifnr(string) attribute( collection cardinality 1.1, selection 0.1 ),

IMessageNew1Comp.NOVAL (NOVAL is the key, type error defined in  message pool)

String strLifnr = wdContext.currentVendorElement().getLifnr();  

   IWDAttributePointer attA = wdContext.currentVendorElement().getAttributePointer( "lifnr" );

   if((strLifnr == null) || (strLifnr.equalsIgnoreCase(null)) ){

    attribInfo = wdContext.nodeVendor().getNodeInfo().getAttribute("lifnr");

    msg.reportContextAttributeMessage(attA, IMessageNew1Comp.NOVAL, new Object[]{});

   }

let me know if you need any clarification.

Thanks & Regards

Satya.

0 Kudos

hi Satya,

Thanks for the code. It is working fine . I did not include

attribInfo = wdContext.nodeVendor().getNodeInfo().getAttribute("lifnr");

Do we have to make major changes for highlighting a DropDownByKey?

Suman C

Answers (0)