on 09-21-2006 1:03 PM
Hi,
I need to read a label text to pass as an argument to the Message Pool in my DC.
The Text for this label is being displayed from ABAP.
So when I use the following code, the argument passed is displayed as null (as I havent set any text value for this Label) on the view.
oStrtDateAft = (IWDLabel) view.getElement("ProjStartAfterLabel");
manager.reportMessage(IMessageMainComp.ERROR__NULL__STARTDATEAFT, new Object[] {oStrtDateAft.getText()}, false);
Is there any option to read the value of the label text that is read from ABAP?
Hi Shika,
It is working for me.
IWDLabel label = (IWDLabel)view.getElement("Label");
String text = label.getText();
manager1.reportSuccess("Txt "+as);
manager1.reportMessage(IMessageTestWDComp.START,new Object [],true);
Regards,
Sridhar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
size = wdContext.node<outputlabelnode>.size();
for (int idx = 0; idx < size; idx++) {
IPrivate<ApplicationView>.I<outputlableElement> val =(IPrivate<ApplicationView>.I<outputlableElement>) wdContext.nodeI<outputlabelnode>().getElementAt(idx);
String sval = val.NAMEOFATTRIBUTE;
It might helps .
Thanks
Lohi
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.