on 02-18-2014 8:38 AM
Hello,
I have a HR dashboard on which I want to show employee photos.
Normally, in HR ecc system HRWPC_RFC_EP_READ_PHOTO_URI function is used to get URL of the picture.
I can run this function from DS side via a web service; but how can I get the response of the web service?
I hope I'm clear.
Thanks.
Hi Coskun,
At the moment I think your main option would be to write a custom component using the Design Studio SDK to interact with the web service.
Regards,
Mustafa.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Coskun,
To call a webservice from you SDK code, you will use this function
$.ajax({
type: "POST",
url: "MyWebService.asmx/SayHello",
data: "firstName=Aidy&lastName=F", // the data in form-encoded format, ie as it would appear on a querystring
dataType: "text", // the data type we want back, so text. The data will come wrapped in xml
success: function (data) {
$("#searchresultsA").html(data); // show the string that was returned, this will be the data inside the xml wrapper
}
});
This is just a simple example of how you call the webservice from javascript, which is the programming language you will be using to code your SDK, you should look into the $.ajax function to find exacly what you are looking for.
Let me know if you need further help.
Best
Leandro
Hi Coskun,
With the current limitations of DS, you can follow below steps to achieve your objective. This offcourse is valid only if you don't want to use the SDK option...
The method is long but the evils are known
The Listbox read method can be used also in case if you want to read some other characteristic values of the Employee and capture results in any text element.
Hope this helps,
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your suggestions, I appreciate a lot Sdn community.
@Anil: Url text that HR ecc is generating is more than 400 characters because it has security key inside. I don't know how it's possible to use Bw in this case The maximum size for text in Bw is about 60 characters as I know. I can ask to HR module specialist to create the url shorter maybe.
@Victor: This method can work also, I will try and let you know.
Regards,
Coskun.
Hi Coskun,
Generally there will be a fixed prefix of URL which shouldn't change for every employee. You can keep this portion hardcoded in DS.
Even after this if the URL length is more that 60 characters, you can split the values and move the result into multiple info objects and then concatenate results in DS. (Just to add, this restriction of 60 char is now no more valid in BW 7.4 as I understand, but need to confirm)
But if your are able to consume the web service in an Universe, and get the URL as a result value, this option is much preferable than getting this worked in BW.
Reading the values will however may require the same method as mentioned in items 4 & 5.
Please keep your results posted.
Regards,
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.