Question
7
Replies
3891
Views
Posted: April 17, 2015
Last activity: July 17, 2017
Closed
Solved
Javascript API questions
We all know that for most Pega applications we shouldn't need custom JavaScript, but, in the course of application development, custom development is needed on occasion, and when it does, who ya gonna call? I've had these questions in my mind for a while, and with the confluence of this support area coming into being, and some specific needs for an application I'm assisting on, I wanted to ask:
- The desktop API docs is pared down in v6, and just omitted and v7. But it's easy to regenerate this (I just haven't done this in a while). Can someone do this and make it available? With PDN being opened up to search engines, can we do the same for the desktop API?
- Sync'ing the clipboard Many methods (reloadSection, refreshList) post the form data to the server and get HTML in return. Is there any API that simply posts the form data (to keep the Clipboard in sync), and get a status code in return? This actually *might* be as easy as just building a URL setting the primary page and calling a POST via Ajax. I expect many applications are going to be moving in this direction in general, using richer clients.
- Are there methods for getting/setting Dynamic Select values -- and are these synchronous or asynchronous? (that is, we would want to ensure that these values are set, before invoking the post in #2 above.
***Updated by moderator: Marissa to close post***
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
Hey Jon,
#1 - The Desktop API was entirely omitted in V7. That was a product decision, and I'm not certain on the exact reason. Perhaps someone from the product team can consider regenerating it and posting it, I know I would certainly appreciate it.
#2 - You are looking to post *all* the form data to the clipboard. I'm not aware of any API to do this, but it is an interesting use case to be certain.
#3 - Dynamic Selects are just <select> elements. You can get / set the value using jQuery $("#PPyWorkPagepPropertyName").val(). Also - you wouldn't need to do anything prior to syncing the clipboard, since the dynamic select is already part of the form, no?
P.S. Fried pickles again sometime?
-Ben