hi,
is there a way to combine a textitem and buttonitem together?
i want to create a popup window in this case.
Can you provide me solutions?
hi,
is there a way to combine a textitem and buttonitem together?
i want to create a popup window in this case.
Can you provide me solutions?
Hi Ycceric,
Am I correct in thinking you want a textItem with a button next to it which will launch a pop-up window on click?
If so it seems like the FormItem.icons property will let you achieve this.
Regards
Isomorphic Software
Thanks, it is what i want
and how about display a image in dynamicForm?
it seems that the image type cannot be use in dynamicForm
the image type can only be used in grid?
Yes - the dynamic form only displays formItems, not SmartClient Canvas subclasses, and the Img class is a Canvas subclass, not a FormItem.
There are a few ways to display an image in a DynamicForm - can you tell us what your use case is? If you’re trying to duplicate an existing UI a screenshot would be very helpful - otherwise just describe what you’re trying to do and we can probably suggest the appropriate approach.
Thanks
Isomorphic Softwrae
actually, in a normal form, it may contain some images upload like the user profile photo.
It is actually belong to a formItems because we actually just need the “image link”. After retrieving the image link, what we have to do is to display the image in the dynamic form, just like what grid did. As you know, if we get the link in dynamicForm, we can do nothing on the “link”…
And if the image class is a canvas subclass, it is very inconvenient because we have to create a grid to display those “image”…
please give me some suggestions on this use case
Hi ycceric,
Not really about to understand whether you are talking about uploading images, links to images, what you think the limitations are or why a grid would become involved, but perhaps you just need to know that the value of a StaticTextItem can be HTML, hence can include an <IMG> tag?
for example, i have jason data {image:“images/a.jpg”}
and i have a dynamicForm fields
{name:“images_upload”,type:“text”,icons:function(){
…
…
}
} <– here will show a popup for upload the image, display the “link” of the uploaded image and what i want is to also display the image to the screen
Hi ycceric,
Just checking - have you solved this yet?