on 01-30-2007 4:21 PM
Hi,
how is it possible to reuse a dynamic created attribute in a context? In my Application the user has the option to sort the attributes. But after sorting the attributes I can't use the same method to show the sorted documents (linktoAction) in my view, because of the name. I get the message: <b> duplicate name for attribute FileResource0 </b>.
for (int i = 0.....){
......
IWDAttributeInfo attributeInfo = wdContext.getNodeInfo().
addAttribute("FileResource"+i,"com.sap.dictionary.binary");
fileDownload.bindData(wdContext.getNodeInfo().getAttribute("FileResource"+i));
......
}
regards,
sharam
wdcontext.invalidate();
do it before create.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try the following.
if(wdContext.getNodeInfo().getAttribute("FileResource"+i)!=null)
{
IWDAttributeInfo attributeInfo = wdContext.getNodeInfo().
addAttribute("FileResource"+i,"com.sap.dictionary.binary");
fileDownload.bindData(wdContext.getNodeInfo().getAttribute("FileResource"+i));
......
}
}
Regards,Anilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi SHaram,
Where are you writing that piece of code ??
Regards, Anilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anilkumar,
I write it in "wdDoModifyView(...)" under "if (firstTime)" and I call the same piece of code from another function. I had to do that because the user has the option to sort and update the view several times. So if the user re-sort the values on the view I get a problem with the name of it.
regards,
sharam
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
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.