Is it possible NOT to include the name of the document as the root of a peoplesoft JSON document tag?

I'm consuming a REST service (from documentum) in peopletools 8.53. I have set up my document, message, service and security and can connect to and receive a response from the REST service. I can't fill the response document, however, for two reasons - the peoplesoft document begins with the name of the document that the tag root has no the REST service. In addition, the service REMAINS returns tables brackets and the peoplesoft document seems to accept only braces. What I've read, hooks can be supported in peopletools 8.54 but we will not upgraded our tools of press at the moment.

Is it possible not to provide or ignore the root of a document of peopelsoft tag? Also, is there a way to structure a document to tables? I can see the whole of the response from the REST service using the GetContentString method message - is the best option to analyze manually through the answer and do not use the document object at all?

I have the same frustration. One solution is to use a separate library to parse the JSON (something like json.simple). Another solution, I think it's easier, is to use JavaScript, which is included in Java 7 with 8.53 PeopleTools. Here is an example of JavaScript:

/* Sample JSON data
[
    {"emplid": "KU0001", "oprid": "HCRUSA_KU0001"},
    {"emplid": "KU0002", "oprid": "HCRUSA_KU0002"},
    {"emplid": "KU0003", "oprid": "HCRUSA_KU0003"}
];*/

var result = (function() {
    var CreateRecord = Packages.PeopleSoft.PeopleCode.Func.CreateRecord;
    var Name = Packages.PeopleSoft.PeopleCode.Name;
    var SQLExec = Packages.PeopleSoft.PeopleCode.Func.SQLExec;

    var rec = CreateRecord(new Name('RECORD', 'NAA_SCRIPT_TBL'));

    var count = 0;
    var json_string;
    var json;

    var guid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
        var r = Math.random()*16|0, v = c == 'x' ? r : (r&0x3|0x8);
        return v.toString(16);
    });

    rec.GetField(new Name('FIELD', 'PM_SCRIPT_NAME')).setValue('JSON_TEST_DATA');
    rec.SelectByKey();
    json_string = rec.GetField(new Name('FIELD', 'HTMLAREA')).getValue();
    json = JSON.parse(json_string);

    // TODO: iterate over json data and
    json.forEach(function(item, idx) {
        SQLExec("INSERT INTO PS_NAA_TEST_TBL VALUES(:1, :2, :3, SYSTIMESTAMP)", [guid, item.emplid, item.oprid]);
        count += 1;
    });

    return "Inserted " + count + " rows";

}());

Here is the JavaScript:

  1. Declares variables that point to PeopleCode functions
  2. Selects JSON data in a database table. You could alternatively fill a JavaScript variable before executing the JavaScript (code below)
  3. Analysis the JSON using JSON JavaScript Analyzer
  4. Traverses the JSON
  5. Using SQLExec in JavaScript to insert some values of the JSON data into PeopleSoft tables
  6. Returns a message describing what happened

Here are the PeopleCode required to run this JavaScript:

Local JavaObject & Manager = CreateJavaObject ("javax.script.ScriptEngineManager");

Engine & local JavaObject = & manager .getEngineByName ("JavaScript");

Local station &script;

SQLExec ("SELECT HTMLAREA FROM PS_MY_SCRIPT_TBL WHERE MY_SCRIPT_ID =: 1", "THE_SCRIPT_ID", & script);

& engine.eval(&script);

Local chain & result_text = & engine .get ("result") m:System.NET.SocketAddress.ToString ();

Tags: Oracle Applications

Similar Questions

  • link with the relative path includes the root folder

    I hope someone can help me. When I convert a Word to PDF file with a path relative to another document, a reason any Acrobat includes the directory root with the path if the link does not work. Even when I try and change the link using Acrobat Pro and save the document, the system adds the default root directory. What is happening with this?

    example:

    Directory with the file/subdirectory with file/sup under directory with the file / / my document.pfs

    site to register:

    C: / / my documents /.

    Directory with the file/subdirectory with file/sup under directory with the file / / my document.pfs

    solved my problem. I removed the links in the word document and then created in Acrobat. It worked.

  • Viewing live does not work with the root Site links

    I can't get Live View to load any CSS, JavaScript or images when you use the links in the root of the Site (such as < link rel = "stylesheet" type = "text/css" href="/css/main.css" media = "all" / >).

    Links work, but it's not really all good what I'm doing.

    I have the project set up as localhost in IIS if that helps.

    For performance, Live View local files for the model non - default server
    pages. So, to display the links of the Site root, you must select "Use."
    Test Document Source Server"in the Live View drop down of the
    The document toolbar.

    HTH,
    Randy

    > Yes, the site is set using the Site root for ties & previews fine in the browser.

  • GroupDataModel is not sorting when the data are added to Json

    If I have an empty Json and I add data to him one by one, everything works just fine, but when I have a data in Json it sort. Let's say that this is my json:

    [
       {
          "DateCreated" : 1383137332,
          "DateToFinish" : "1383137400",
          "Description" : "Task 3",
          "Status" : "1",
          "taskId" : "3"
       },
       {
          "DateCreated" : 1383137327,
          "DateToFinish" : "1383137400",
          "Description" : "Task 2",
          "Status" : "1",
          "taskId" : "2"
       },
       {
          "DateCreated" : 1383137321,
          "DateToFinish" : "1383137400",
          "Description" : "Task 1",
          "Status" : "1",
          "taskId" : "1"
       }
    ]
    

    sortingKey is set for "taskId" and sortedAscending is set to false "(false) setSortedAscending" but in the ListView, it indicates in order as 'Task1, Task2, Task3' growing. I filled out model json with:

     QVariant list = jda->load(QDir::currentPath() +
                                 "/app/native/assets/test.json");
    
        this->insertList(list.value());
    

    In addition, after I have load and insert json to the model, when I try to add a new model element, it adds properly in its place. He would add "task4' with the id" taskId: 2 "at the top of the JSON...»

    EDIT: "jda" is ' bb::data :: JsonDataAccess'

    Put 'setSortedAscending (false)' after insertion has solved, but I'll leave this open for explanation.

  • Scripts, not found in the $PS_HOME/scripts in PeopleSoft LMOS

    After the installation of PeopleSoft LMOS models on our server, I need to do additional steps in the PeopleSoftEnterpriseHRMS91InstallationGuide.pdf.
    The guide says I should run DMS pcesys.dms out of $PS_HOME/scripts, but when I go to the server app in package machine, there are only 2 files DMS. Where are the scripts located? How can I get this file? I have just a Ptools customer sitting on the windows client, do I have to install PSHRMS9.1 here to I can get this file?
    Thank you!!!

    Yes.

    Nicolas.

  • Strange and deadly file name / folder of the root problem. Help, please!

    Hello. I wonder if someone could help me!

    I'm on CS4, but this problem has happened yet in CS3. When I created a new site in Dreamweaver, I go through the usual motions by selecting the local root folder and the images folder. Then when I go to the new site how to create a cache of the original site as usual. After that (when I try to download anything for example) the cache seems to have disappeared (for example all files disappear them in DW). He told me that I should go through the implementation of the process of site once again, but this only ends up going round in circles!

    Curiously, when I look at my HD in the finder, Dreamweaver has created a new folder named "Macintosh HD" and inside follows the same structure of exact file that 'real' local files unless the Web site files do not exist in the root folder.

    I don't understand what is happening here. I suspect that it is perhaps something to do with the locations of files and relative / absolute which connects to the hard drive?

    Please help if you can! Thank you.

    > My hard drive is named "Macintosh HD" and a path in the example would be:
    >
    > Macintosh HD/users/mike/Documents/Local Sites/Jukebox

    What is a real exact path to a local site folder?

    Are there "funky" characters as empty space left in the hd
    name, or a sign of punctuation or above ascii in a folder name?

    Please follow these steps:
    Open a new empty html file using the file-> new
    --> do not save this file<>

    Type some text in Design view
    Select the text, and then create a link to this site "homepage" file using the
    link icon of the folder in the property inspector

    View code and copy the code from this link and paste it into the answer.
    It should be a local absolute path as
    file:///harddrivename/users/username/folder/folder/index.html

    Adobe technote on file names or folder in mac os break features:

    http://KB.Adobe.com/selfservice/viewContent.do?externalId=tn_14452

    --
    Alan
    Adobe Community Expert, dreamweaver

    http://www.Adobe.com/communities/experts/

  • Reliance Netconnect + Modem does not connect to the Internet in 2301AX G6

    For the past 15 days, my Reliance Netconnect + modem is usually not able to connect to Internet even the signal bars are full. My HP G6 (Win 8 OS) 2301AX was purchased in February 2013. In a short time after purchase, the laptop faced serious questions of heat, and I had to apply thermal paste to cool the system. Although the modem worked perfectly until the beginning of April, this strange problem began. Only once until I met this problem 2 months before and one day all of a sudden the problem is solved on its own! Release with confidence because what the error msg was "the remote computer did not. To make sure that the server can be reached, please ping the remote computer. "They said that there were network update going on in my community, and it is resolved after a few days. Then I went to the center of the modem service and got the modem checked. No problem, and the modem was perfectly to connect to the Internet at high speed!

    Strager thing is if you hold press the strong modem for awhile, sometimes the modem was connect to the Net, and the speed was great! This was for 1 port USB 2.0 and 2 other USB 3.0 ports. Pen drives, digital camera and smartphones were connection correctly however.

    To solve the problem, I contacted HP and followed their advice "uninstall the USB controller drivers and restart the computer. Nothing happened. Then reinstalled Win 8 and updated all the drivers. Nothing improved. I'm not even where the root of the problem might be. All the USB ports on the laptop can't die just in one year! Help, please.

    Hello world

    Solved problems of network modem connection!  Visited HP service center. They said that this situation occurs because incorrect drivers. They recovered the system partition and reinstalled the operating system. And voila! Everything has returned to normal and the modem has detected on all 3 USBs. Thanks for all the help!

  • Windows Movie Maker - releasing only audio, is it possible to publish the exact length of the audio and does not include the lot of silent at the end?

    Windows Movie Maker - have 6 minutes of audio spliced, I would like to publish in the form of an audio clip with no video.  I heard that this is possible, and it all works, the 'framework' includes 6 more minutes of space without air circulation that gets compiled with the planned 6 minutes of audio matching 12 minutes of audio rather than the 6 minutes.  Is it possible to MovieMaker 'See' the end of my audio instend, to include 12 minutes in length with it default?  Should I include photos or video for the project to publish only 6 minutes, instead of the 12 minutes?   I hope this makes sense...

    I assume you are using Vista Movie Maker 6 and not Live Movie Maker?

    It is a problem that I've not seen before... the recorded length must be equal
    at times combined clips on the timeline. I guess it's possible
    If you've done a lot of editing/trimming clips... something was corrupted.

    I was wondering... If you import the .wma file saved in Movie Maker and drag
    it to the timeline... it shows the clip as being the length of 12 minutes? If it isn't...
    Perhaps you could he split and right click Delete unwanted 6 minutes and
    then re-save.

    Divide... drag the playback at the end of the music and the type indicator... CTRL + L
    .. .to split the file then right-click of the unwanted part and click on delete.

    Tip: Unlike clips video... audio clips can be dragged to the timeline, so don't forget
    they are dragged all the way to the left to prevent air from dead at the beginning or
    between the clips.

    It may be worth trying to go to... Tools / Options / compatibility... tab and the left click
    the "All default settings" button before the Save.

    And... If the clips audio source are not the. WMA format... it could be a useful
    try to convert them to WMA before you import into Movie Maker.

  • Once the Interactive connection: not display last user name has been applied is it possible to reverse the trend. I want a few users to see their user names.

    Once the Interactive connection: not display last user name has been applied is it possible to reverse the trend. I want a few users to see their user names.

    Initially, it was setup for the security but now a few users need to see who's online before.

    Help, please

    Hello

    Thank you for contacting Microsoft Answers.

    You do the following:

    1. click on start.
    2. type: secpol.msc and press ENTER.
    3. go to local security policies / adjustment / security options.
    4. on the right side to find Interactive logon: do not display last user name and change to turn it OFF.

    If the issue is not resolved, answer here.

  • How can I search all subjects in my guide? and if this is not possible, how do I get books have not not subjects with the same name?

    How can I search all subjects in my guide? and if this is not possible, how do I get books have not not subjects with the same name?

    "People need be able to find these without having to look inside each book TOC.

    Sorry, but I'm not a big fan or user of this sensitive arrangement "New kid on the block. Therefore, it may be that I am simply misunderstanding because I do not regularly use it. Of what you say, it seems to me that if you (or more precisely your users) are not able to click on the right side, where he says 'Getting Started' or 'List of Email Campaign' and see these topics open and view the content with search terms highlighted?

    Regarding the "bookmarks", those that are normally visible by the user and will be not viewable unless the name of the bookmark appears also as text within the topic. Although, if the two are different, you could probably get there by adding the name of the bookmark as a keyword search in the properties of the section.

    In any case, I feel that at this point, I can just be frustrating you and you may need someone else to try to help that probably better understand the issue.

    Sorry, I was not able to help.

    See you soon... Rick

  • Direct e-mail does not include the "name &#60; e-addrɬ" format of e-mail address if the e-addr is not already in the list of contacts

    After entering the Ctrl-F to save the project email all in composition, if the recipients in the To: / Cc: / Bcc: fields are not already in the list of contacts, the live tool Email would remove the of "name " format, causes the email undeliverable due to unknown recipients. BTW, is there a way to set Live automatic email saves the recipient from the list of contacts if the ' name ; ' e-address format are used to: field?

    See: a question of Hotmail or Windows Live Mail?
    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-networking/have-a-Windows-Live-Mail-or-Hotmail-question/8bd31c48-d1a7-49D6-a08c-9069aaeba2e5

  • List of Figures: How to not include the figure discription?

    Hi, I'm writing my thesis for a Ph.d. student, and I have a very specific requirement for figures and Figure legends and tries to use the automated features of InDesign to help me. I know it must be possible, I don't know how. Here's the situation:

    I need to have a figure which is subtitled as follows: 'Figure 1.1 products chemicals used. This figure illustrates the structures of chemicals...» In which 'Figure 1.1' is the number of digits, "chemicals" are the title of the figure, and the rest of the text is the real legend. I need them to be, as shown, in the same paragraph (IE not on separate lines). I have about 100 numbers. I learned how to set a list and then set legend style to use the list so that the figures are numbered automatically. Here's the question:

    Then I need to generate a list of Figures (similar to a table of contents) which lists each figure in the following format:

    Chapter 1. Introduction

    Figure 1.1 chemicals used... 1

    Figure 1.2 made molecules... 2

    In which the number and title of the Figure are reported in the table of contents, but the figure legend text is not. I was able to understand a little about how to set up the table of contents report on more or less in the format I need to (although I still have to solve what I mess up), but the real problem is that when I automatically generate the table of contents, it includes the text of the entire legend. It is because in the legend of the origin, the text and the title and number are all one paragraph, so when I fill out the table of contents based on a definition of the paragraph, it fills with the whole paragraph.

    Two things I can think that it can solve are if I can) 1 defines two different paragraph styles in the same paragraph or 2) fill a table of contents based on a character instead of a paragraph style style (then I could define just the number and title as a certain style and populate the list with it.)

    Anyone out there have the solution for me? I clearly have a familiarity with the program (I went through all the class in a book in the last days), but am no expert. Your advice and assistance will be greatly appreciated!

    LunaKT wrote:

    "* If there are too many titles figure for the approach described above, you can insert a nested here at beginning and end of each caption Style end character (example: this figure shows blah)." These characters of width zero invisible are preserved in a generated table of contents. Modify paragraphs in the table of contents entry to include a nested style is none until 1 end nested here Style and a character style placeholder Style nested here until 1. The character style must not have any visible properties.  Create a condition. Set up the table of contents, then select include a full paragraph.  Once the table of contents are generated, use find/replace to find the placeholder style character and replace it with the State. Then, hide the condition. "

    There are too many titles (some of them, a lot of long words) figure for the first approach.

    Maybe I didn't explain it clearly enough. The way I understand you description, your auto numbered paragraphs start with a figure title, a short sentence as chemicals used, created molecules, etc.. This title is followed by a longer text, that you seem to call the legend text.  I think you want to extract the end of automatic and numbering introductory paragraph for the TOC. You found that InDesign cannot separate the parts of a paragraph to the TOC process. You also found that InDesign cannot easily put two paragraphs on the same line, so your disposal presents a dilemma.

    There were descriptions of how to put the two paragraphs on the same line on these forums, so try searching on Google for "InDesign two paragraphs on the same line," 'Zero InDesign space before paragraphs' "InDesign negative space before paragraphs," and other similar expressions, without quotes. (Google searches find topics in these forums and other resources outside of Adobe).

    The method of image inline was mentioned in another post on this thread.

    as for the second, I'm still pretty new to this program I think I follow your logic, but will have to play a little to make it work. As a solution, it seems viable, but I am really surprised that InDesign doesn't have a feature for this built in - I think that this kind of situation would be pretty common.

    FrameMaker has the opportunity to present two or more independent paragraphs on the same line. The so-called "break-in" paragraphs they are essentially the paragraphs with a "carriage return" but no line breaks. You can post a formal request to incorporate it into a future version of InDesign to https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform.

    If you have the time, do you think you can only simplify/clarify this explanation a bit more? I follow your logic, but am not following how do a space character reserved up to 1 nested Style to end of style here. (Literally, I can't know which menu to open and what to do in order to complete this statement)

    Thanks for your thoughts.

    "Style of placeholder characters" may be a term that is too vague. I wanted to say that you need a character style that is not what anyone other than to identify the text to which you want to apply a condition, so that you can hide text in the table of contents extracted, by hiding the condition. The condition does not change a text property, although you might want to temporarily give a different text like a color property or "BOLD" when you set the nested style, so you can immediately see the result. After you've proven configuration, remove the property changed the character style.

    Nested styles are created in the balls and Nested styles from the paragraph Styles panel Panel. Read more about nested InDesign using paragraph styles. You can simplify the insertion of markers end nested Style here using the quick apply feature. Him to the position of the text insertion point where you want to insert the marker, press Cmd + enter on Mac or Ctrl + enter on Windows, to open the quick apply dialog box. Type "here" without the quotes in the text entry box to view and select the command "Nested at the end Style here". Press ENTER to insert the marker and close the dialog box. Move the cursor to the next position, press Cmd / Ctrl + Enter again. Apply quick should redisplay and highlight the last command, "End Nested Style here." Press ENTER. Etc. Another approach is to select and copy the marker, then paste it where you need it. If you do not see the marker, turn on Type > show hidden characters.

    HTH

    Kind regards

    Peter

    _______________________

    Peter gold

    Know-how ProServices

  • user name displays wrong in capital letters at the top of the support page. I see it correct in post however; Passwords not displayed in the Security page?

    There is a similar issue where a user asks why his user name is indicated in all cases of small. My problem is the reverse of this and have a problem me of security in the way that it appears. Do you understand what I'm saying / implying? Second half of my question must be indicated separately... but I can't show screen captures and copy / paste it to display all my concerns separately. It took me two weeks just to get the support of Mozilla to take one of my questions, which includes a separate question on the connection to this page (to check under my username). I'm that raise because I can't it spend many hours just trying to get answers to things that should never occur on Firefox. It's as if it's the same amount of security issues, such as Internet Explorer a. cannot find a field course. Your app problems works, I see well at first glance. But good blood, so many hours spent on brand laptop nine just to any browser without these security vulnerabilities expose me as I am naked; just try out these issues for you. I'm sorry to ramble on time, but it seems so wrong to have so many problems on a PC new, new version of FF 41! There are issues with copy / paste, to better explain the problems of screen capture. I need to be connected to a remote control utility PC just to show all questions. Is this possible with your troubleshooting app? Please don't leave me because I'm sniveling. I must really be reassured that it will happen as I am exposed just by sending this. Can you feel me? I need to view the issue with error message of synchronization. Is it possible to address all the issues at once with your troubleshooting app? What I really need to open each issue separately because they are many. Sorry, but I can't reinstall FF 41 is no cure for these issues. Is no answer. Thanks in advance for listening. I believe in FF/Mozilla concepts.

    I use a rule in userContent.css to change this in small capitals.
    Which looks almost the same and allows to preserve the species, that is to ask a question shows with a capital 'A' instead of as 'ASK A QUESTION '.

    You can use the Inspector to find the switch to other containers where you want to change the appearance.

    @-moz-document domain(support.mozilla.org) {
     #aux-nav,.question-meta {font-variant:small-caps}
    }

    Add the code to the userContent.css file.

    The file userChrome.css (UI) customization and userContent.css (Web sites) are located in the folder of chrome in the Firefox profile folder.

    You can use this button to go to the current Firefox profile folder:

    • Help > troubleshooting information > profile directory: see file (Linux: open the directory;) Mac: View in the Finder)
  • Mozilla, your last update does not include the last cert of intermediaries of extended validation from Verisign, Symantec class 3 EV SSL CA - G2, please fix ASAP

    Your last update of firefox, Mozilla does not include the last cert of intermediaries of extended validation from Verisign, Symantec class 3 EV SSL CA - G2, please fix ASAP

    Firefox never includes the intermediate certificates.
    It is the responsibility of a server to include all the intermediate certificate required to make it possible to build a certificate chain that ends with a trusted root certificate embedded.

    Note that Firefox automatically records the intermediate certificates that servers send in certificates for future use Manager (they appear labelled as 'Software security device' in the References tab).
    If a server does not send a complete certificate chain then you get an untrusted error when Firefox has stored missing intermediate certificates to visit a server in the past that a send it, but you get an untrusted error if this intermediate certificate is not yet registered.

  • Is it possible to include the file lvprog in a source distribution build specification

    It seems to me that a full source distribution includes the associated project files but I don't see that it is possible to do. I missing something or do I just have to continue to, outside of LabVIEW, high zip folder that contains everything?

    I think you are talking about the *.lvproj (not *.lvprog).

    No, it is not possible. I think it was possible in the past (LV2009 and earlier versions) and I already complained that elsewhere long ago.

Maybe you are looking for

  • MacBook Pro Parental control

    Greetings, My son has a laptop MacBook Pro 13 "computer retina and I'm trying to limit access.  I want to use Parental controls, but I don't want to give him an administrator account. However, I still want to give him the ability to install software

  • Dual-boot & recovery DVDs

    Hello I have a Toshiba satellite L555 - 11L, with Windows 7; I would like to install the dual boot (linux + windows seven), so I need to format the entire disk HARD to redefine partitions and then install Windows seven recovery DVD; I read [here | ht

  • Satellite C660 - AC adapter / CC load questions

    Hello Had some problems with my Satellite C660 charger. Seems to load to the top of the laptop and then decides that he is no longer connected to the electric network although it is plugged. When you pass this by continually. Is there a way to fix th

  • Z510 touchpad not working not with select lists or menus

    I have a windows Z510 10. When I try to use any application wit just the touchpad and open a list item or a menu select and try to scroll down, as I scroll tht disappears. If I want to scroll a list I have to use the scroll keys or connect a mouse. T

  • A fake program known as anti virus pro system, severely infected my computer and made him almost useless.

    This program somehow bypassed my security as I was never asked "permission". The program stopped me to open what is not already open.  It does not block same panel Manager and task control to open.  It doesn't seem like a big deal until it blocks my