Is there a way to simulate STRPCCMD(''rundll32 url,FileProtocolHandler in the IPAD?
Thx
IPAD & STRPCCMD
-
- Experienced User
- Posts: 170
- Joined: Mon Jul 19, 2010 2:40 pm
- First Name: Jorge
- Last Name: Cabrera
- Company Name: Lennar Corp
- Phone: 305-229-6400
- Contact:
-
- Experienced User
- Posts: 2711
- Joined: Wed Aug 01, 2012 8:58 am
- First Name: Scott
- Last Name: Klement
- Company Name: Profound Logic
- City: Milwaukee
- State / Province: Wisconsin
Re: IPAD & STRPCCMD
That would depend on what you're using the FileProtocolHandler API for.
FileProtocolHandler is a Windows API that performs a wide variety of tasks related to opening programs. Since this is a Windows API, the exact same function is not available outside of the Windows environment. However, depending on what you're using this for, it may be possible to do the same thing on iPad.
For example, if you wanted to use this to open a URL, this can be done very easily from Genie since Genie runs in a web browser (vs. a 5250 terminal like client access where you'd need to use something weird like STRPCCMD)
Can you explain how you're using FileProtocolHandler?
FileProtocolHandler is a Windows API that performs a wide variety of tasks related to opening programs. Since this is a Windows API, the exact same function is not available outside of the Windows environment. However, depending on what you're using this for, it may be possible to do the same thing on iPad.
For example, if you wanted to use this to open a URL, this can be done very easily from Genie since Genie runs in a web browser (vs. a 5250 terminal like client access where you'd need to use something weird like STRPCCMD)
Can you explain how you're using FileProtocolHandler?
-
- Experienced User
- Posts: 170
- Joined: Mon Jul 19, 2010 2:40 pm
- First Name: Jorge
- Last Name: Cabrera
- Company Name: Lennar Corp
- Phone: 305-229-6400
- Contact:
Re: IPAD & STRPCCMD
Hi Scott:
I am using it to display documents which reside in a server via intranet like this:
http://Imaging.lennar.com/IBPMExpress/E ... .aspx?Tool
Name=PAWSER&SearchName=XXXX .....
Thx
I am using it to display documents which reside in a server via intranet like this:
http://Imaging.lennar.com/IBPMExpress/E ... .aspx?Tool
Name=PAWSER&SearchName=XXXX .....
Thx
-
- Experienced User
- Posts: 2711
- Joined: Wed Aug 01, 2012 8:58 am
- First Name: Scott
- Last Name: Klement
- Company Name: Profound Logic
- City: Milwaukee
- State / Province: Wisconsin
Re: IPAD & STRPCCMD
For a web URL like that, it should be no problem to do it in Genie directly. You only need to use something like STRPCCMD if you want it to work outside of a browser (like, in Client Access.)
In Genie, just drag a button, image, hyperlink or similar, and set the 'onclick' property:
If parts of that URL are needed from other fields on the screen, then you can use the get() API to get them. So you could do something like:
encodeURIComponent will 'escape' any special characters in the field so that they are valid in a URL, and get() will get the contents of a field on the screen (such as D_29_15).
Since this is a Genie 5250 session, you really need the data to be on the screen in order to get it into your URL (though, it could be a hidden field.)
The same technique would also work in a Profound UI Rich Display File, too.
In Genie, just drag a button, image, hyperlink or similar, and set the 'onclick' property:
Code: Select all
window.open("http://imaging.lennar.com/IBPMExpress/External/DocumentActionProcessor.aspx?ToolName=PAWSER&SearchName=XXXX", "_blank");
Code: Select all
window.open("http://imaging.lennar.com/IBPMExpress/External/DocumentActionProcessor.aspx?ToolName=PAWSER&SearchName=" + encodeURIComponent(get("D_29_15")), "_blank");
Since this is a Genie 5250 session, you really need the data to be on the screen in order to get it into your URL (though, it could be a hidden field.)
The same technique would also work in a Profound UI Rich Display File, too.
-
- Experienced User
- Posts: 170
- Joined: Mon Jul 19, 2010 2:40 pm
- First Name: Jorge
- Last Name: Cabrera
- Company Name: Lennar Corp
- Phone: 305-229-6400
- Contact:
Re: IPAD & STRPCCMD
This is subfile application which you position the cursor on the row and hit F17, the URL is created on the fly and execute the STRPCCMD with the created URL.
In Genie we added a image with the following properties:
onclick setCursor("I_12_1"); pressKey("F17")
setCursor("I_14_1"); pressKey("F17")
.
up to
setCursor("I_23_1"); pressKey("F17")
some of the images are hidden thanks to a javascript to match what happens in the green screen. In the PC works perfect.
If I modify the onclick property using a hidden field and window.open,
Will it work for both, PC and IPAD?
In Genie we added a image with the following properties:
onclick setCursor("I_12_1"); pressKey("F17")
setCursor("I_14_1"); pressKey("F17")
.
up to
setCursor("I_23_1"); pressKey("F17")
some of the images are hidden thanks to a javascript to match what happens in the green screen. In the PC works perfect.
If I modify the onclick property using a hidden field and window.open,
Will it work for both, PC and IPAD?
Who is online
Users browsing this forum: No registered users and 6 guests