on 10-15-2008 1:42 PM
Hi all
i have a requirement like when i click on the button then i need to generate one dialogbox where i create the UI elements like FileUpload.
can anybody send the sample code on the same?
Regards
Sunil
Hi Sunil,
Create a new modal or confirmation window and follow the tutorial given in following link:
I hope this may help you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sunil,
Glad to know that the solution was helpful to you. Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Below is the sample procedure to save text to .txt file, where you can get dialog box like Fileupload
You can simply create a button on click of which you can write the following code and test your application. It will be saved as text file.
String abc = "what ever you want to save to text file save it in the string format";
try
{
IWDCachedWebResource resource = WDWebResource.getWebResource
(
abc.getBytes("UTF-8"), WDWebResourceType.UNKNOWN
);
resource.setResourceName("Doke.txt");
IWDWindow window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(
resource.getUrl(WDFileDownloadBehaviour.ALLOW_SAVE.ordinal()),
resource.getResourceName());
window.show();
}
catch(Exception ex)
{
wdComponentAPI.getMessageManager().reportException( new WDNonFatalException(ex), false );
}
or else go for creating confirmation window.
Regards
Raghu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.