Approve, Reject function: is it available for programming?

 10 Replies
 0 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
ThomasT
Advanced Member
Posts: 27
Advanced Member
    Trying to find out if there's a way to mimic or use the Approve and Reject functions within the Processflow inbasket.

    I want to use the same Approve and Reject functions to approve and reject workunits programatically, but I don't know where in the file structure these functions would be, meaning I know they should be javascript but I don't know exactly where or what the actual functions would be called.

    Does anyone have any idea??

    Thank you greatly,
    Thomas
    David Williams
    Veteran Member
    Posts: 1127
    Veteran Member
      See if this helps:

      http://consultdavidw.blog...inbasket-action.html
      David Williams
      ThomasT
      Advanced Member
      Posts: 27
      Advanced Member
        Thank you I will try that.
        David Williams
        Veteran Member
        Posts: 1127
        Veteran Member
          Can you explain better what it is you're trying to do? What you're looking for?
          David Williams
          ThomasT
          Advanced Member
          Posts: 27
          Advanced Member
            Within one single inbasket link, I want to see several req lines (not just one), that I want to select - pick and choose - for approval or reject. I've already got the htm built but I am trying to build the functionality of actually approving or rejecting the lines I selected. I want to select some, not all, but I want the system to be able to recognize which ones I have selected for approval/rejection.
            David Williams
            Veteran Member
            Posts: 1127
            Veteran Member
              It sounds like you're approving by requisition line but want to display all of the lines in one Inbasket display? I'm doing this for my current client but I'm cheating - I'm not pushing each line to it's own WorkUnit.

              http://consultdavidw.blog...-line-approvals.html
              David Williams
              ThomasT
              Advanced Member
              Posts: 27
              Advanced Member
                David,what is the actual inbasket display you used? Is it an htm? or the RQ13.2 XML?
                David Williams
                Veteran Member
                Posts: 1127
                Veteran Member
                  I used Design Studio to create a display with a Data Query with checkboxes. I then used JavaScript to read the checked lines and update RQ13.2 for each line rejected or unreleased. All approved lines are passed to the next approver. The only Inbasket Action available is "Approve" so the user knows he/she has to reject or unrelease the lines via the display.
                  David Williams
                  ThomasT
                  Advanced Member
                  Posts: 27
                  Advanced Member
                    Ok I see makes sense,
                    But how are you actually performing the reject and unrelease? Does the reject/unrelease happen at that very instant when you select that line(s)? Or when you click on "Approve" button in the "Action" section? I am not understanding how you are doing this piece. Or do you have in your display a Form Action button on the inbasket display itself which allows you to reject/unrelease the selected lines?

                    How are you actually approving lines? Are you clicking on the "Approve" button in the "Action" section? If so, how does your display know which ones it actually needs to Approve? I'm not understanding how the "Approve" button in the "Action" section communicates or correlates to the display.

                    And to reject/unrelease, are you clicking on the "Reject" and "Unrelease" buttons on a Form Action button you created on the display?
                    David Williams
                    Veteran Member
                    Posts: 1127
                    Veteran Member
                      What's your email address?
                      David Williams
                      ThomasT
                      Advanced Member
                      Posts: 27
                      Advanced Member
                        Hello it is ttyolia70@att.net

                        Thank you again for your help.