Changing RFx phase though scripting

Hello Experts,
I am trying to change the phase of an RFx document from "Waiting For Approval" to "Open For Review" through a script. The actual requirement is that incase an approver attempts to approve a document once the date has passed the system should automatically change the phase of the RFx to "Open for Review" while notifying the user about the passed date (through an error popup). The code is as shown below. It is written on target RFx validated:
openDate = doc.getPlannedOpenDateTime().getDatetime();
currPhase = doc.getCurrentPhase();
today = new Date();
phase = new RfxSchedPhaseEnumType(3);
collab = doc.getCollaborators();
Iterator iter = collab.iterator();
while(iter.hasNext()){
member = iter.next();
role = member.getCollaboratorRole().toString();
if(role.endsWith("Approver")){
if(today.after(openDate) @and currPhase.toString().equals("WaitingForApproval") ){
doc.setCurrentPhase(phase); //I tried to use method goToPhase(phase,rfx) included within the Home class but no success
throw doc.createApplicationException("PLANNED_OPEN_DATE","custom.exception.rfx.appdate");
The code manages to change the phase but there's a smaill glitch. For some reason the "RFX Response"  does not get populated (ideally it should show the vendors invited for this RFx). Where am I going wrong here??? Any pounters will be highly appreciated. Thanks in advance.
Note: I checked the background task log. It said that the document needs to e approved before a phase change can take effect. Does this have something to do with this issue??
Cheers,
AJ

The problem is solved.
From the debug, it just looks like the initial transfers for ISAKMP simply aren't happening.  So, I thought I'd give a new config one more try...
Although we had used multiple config templates, and a couple of replacement 831s, it just never would come up.  I suspected that it had something to do with notepad and how it was substituting values into the template.  As I said, there are over 200 of these 831s running happily, having used the template method of configuration, but this time rather than copying values from a file holding configuration information, I copied the information I needed directly from the running router (using the old config) into the template.
And this time, the tunnels magically came up.
Had there been a "fat finger" moment where a non-printable character was embedded in the config, I couldn't see it using a binary compare.  Plus, even though the tunnels were down, I was still able to get into the public IP address on the 831 using the new config.
Anyway, I guess that's it.
Mark

Similar Messages

  • Not able to change RFx phase.

    Hi All,
    I am facing issue while moving RFx phase from Open for response to Close for response.
    Steps are as follows:
    -     We have a toolbar script on RFx document.
    -     We are throwing an error from this toolbar script if user tries to run toolbar script when RFx phase is not in Close for response.
    -     Now, if user tries to change phase from open for response to close for response. The error persists on page and does not allow user to change phase.
    -     Anyhow if user reloads the RFx by reopening the document or Save the document and then tries to change phase, the error does not persist.
    I have few questions related to this:
    1.     Why does error persist on page?
    2.     Is there any way to avoid the error to persist on page?
    Please let me know the solution to this problem.
    Thanks,
    Saloni

    the above postings didnt solve my issue,i am getting the messageBecause you have not granted the permission on all objects which are referenced by the API (listed below).
    select FND_WEB_SEC.CHANGE_PASSWORD('MARSHAD','mohammad@123') "RES" from dual
    ERROR at line 1:
    ORA-00942: table or view does not exist
    ORA-06512: at "APPS.FND_CORE_LOG", line 25
    ORA-06512: at "APPS.FND_CORE_LOG", line 432
    ORA-06512: at "APPS.FND_PROFILE", line 110
    ORA-06512: at "APPS.FND_SSO_MANAGER", line 227
    ORA-06512: at "APPS.FND_WEB_SEC", line 1425
    ORA-06512: at line 1..
    can you please list me what are grants and other thins i should give to a user so as he can change password.I do not have the list of objects and you should get it yourself by checking the API code and eTRM website.
    by changing the pwd of the non-apps user after granting grants,will he can be able to change the password.please tell this syntax is correct or not.
    select APPS.FND_WEB_SEC.CHANGE_PASSWORD('user','pwd') "RES" from dualWhat is the point of using "FND_WEB_SEC.CHANGE_PASSWORD" and not FNDCPASS or FND_USER_PKG API?
    Thanks,
    Hussein

  • How to change the Default login script and the USER login script in Netware3.12

    I need to cut down the disk map from Neware 3.12 in Win98 client's PC.
    please tell me
    how to change the Default login script and the USER login script in
    Netware3.12 ?
    Or is there any other ways to do this thing?
    Thanks a lot!

    On 4/6/2006 [email protected] wrote:
    > how to change the Default login script and the USER login script in
    > Netware3.12 ?
    Please repost in the discontinued.forums.
    Edison Ortiz
    Novell Product Support Forum SysOp
    (No Email Support, Thanks !)

  • How to change the phase by 90 deg of a sine wave

    Hi
    Does any one know how to change the phase of a sine wave by 90 degrees.
    Mal

    Hi Malkoba,
    Thank you for your post.
    Having looked at your VI I can say that you have created the correct inputs to the 'Sine Waveform.vi'.
    However the dial you had created had no affect as it was not wired into it the 'Sine Waveform.vi' on the block diagram.To fix the problem I have wired the 'Phase' dial into the 'phase' terminal of the waveform generator. This now changes the phase of the sine wave during runtime.
    The dial also now has a digital display (numeric box below it)- this can be used to read the dial's value, or feed in specific values into the control.
    Please find a modified version of your VI below.
    Regards,
    Field Sales Engineer | National Instruments | UK & Ireland
    Attachments:
    NI_phase shift sine.vi ‏31 KB

  • Is there any changes in the DIAdem script between DIAdem 9.x and DIAdem 10.x ?

    Hello,
    I have got a question about DIAdem Script.
    I saw the compatibility problem described in KB.
    'Why do my DIAdem 9.1 Scripts not work in DIAdem 10?'
    Many problems were solved, but some case were not.
    So I guess there is some changes in the DIAdem script between DIAdem 9.x and DIAdem 10.x
    Thanks for your help.

    Hi supportko...
    Yes, there were a lot of new features introduced in DIAdem 10.0, and 10.1.  These are described in detail in each product's ReadMe file, and also in the Online Help under  the "Index" tab at the node "DIAdem>>New Features>>New Commands and Variables"-- you will see 2 sections there:  "Version 10.1", and "Version 10.0", showing you exactly what has changed.  In most cases there is a compatability switch whenever a new feature creates a compatability issue for scripts developed in a previous DIAdem version.  R&D works very hard to minimize the impact of new features on existing VBScript applications.
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments
    Message Edited by Support on 05-02-2007 03:56 PM

  • Labview, Change the phase between 2 signals dynamically

    Hello,
    I'm working on a big VI , and for testing my VI I have some controls.  A part of my VI is to generate 2 sine signals with the same amplitude and frequency and a phase difference between thoses 2 signals.
    My example is quite simple but very similar the one I use :
    - I can change frequency and amplitude while the VI is running.
    - I can't change the phase.
    Anyone have an idea ?
    thank in advance
    Solved!
    Go to Solution.
    Attachments:
    Generator.vi ‏77 KB

    Hi Danl_B,
    My VI run, but I haven't a sine at my output. if I use a graph chart I can see a sine (not really good in résolution, it's more like a triangle) .
    And if I set this signal for my DAQ analog Output and after that Acquiring with an other DAQ, it doesn't show me a sine but a square with strange change of amplitude.
    I hope you can understand what I mean, my english is poor..
    Max

  • The installer found unexpected changes to the install script

    Hi,
    I've just try to install PC Client 15.7 "EBF 23439: 15.7 SP130" Just downloded from Service Market Place on a Win 03 R2 32 bit and on Windows 12 R2 64 bit
    On Win 03 R3 32 bit it works fine but in  Win 12 R2 there isen0t any way to run Sybase Central.
    When I try to uninstall, on each machine, there are only thi message:
    Unable to lunch installer
    The installer found unexpected changes to the install script:

    Hi,
    So you are saying that PC-Client 15.7 SP130 doesn't uninstall? I will look into this.
    If you go to your control panel and installed software.
    What version(s) of Microsoft Studio do you have installed?
    What versions of Microsoft Visual C++ #### Redistributable Packages do you have?
    From what I saw they had pulled the Sybase Central out of PC-Client.
    You might be able to get from ASE 15.5 version of PC-Client.
    Please note that PC-Client with Sybase Central was never certified with Windows 8 or 2012. So you never get Sybase Central to work on those operating systems.
    PC-Client 15.5 last drop should have been certified with Windows 7.
    Thanks,
    Dawn Kim

  • How to change multi Find-Change Queries into a scripting

    I was wondering if possible transcribe multi Find-Change Queries into a scripting?
    If it is possible, can someone tell me how?

    1) Buy something and charge the rest to a credit card.
    2) Ask Apple to keep the balance.
    iTunes Customer Service Contact - http://www.apple.com/support/itunes/contact.html

  • Permission changes after running maintainence scripts

    Everytime I ran the daily, weekly and monthly scripts, I will exprience a change in permission when I run disk utility. This is where it changed:
    Permissions differ on ./private/var/log/secure.log, should be -rw------- , they are -rw-r-----
    Is this permission change normal?
    They will stay correct until the next time I run the maintainence scripts though.

    Yes, that is normal; the BaseSystem.pkg defines the permissions on that log as 0600, while the weekly cron task sets the permissions on it to 0640 while rotating the log files. The difference between these settings is that any administrator can read the file while it is 0640, because the file's group is the admin group and the third value controls the group access.
    (10611)

  • Change "Location" with a script?

    Dear all,
    I am working in two different (network) environments and need to change both network settings (proxy, ...) and also computer settings (CUPS server) and some environment variables depending on my physical location. For the latter two I have a little bash script that does that conveniently.
    But changing the network always requires a few clicks extra... I was wondering if it was possible to change the network environment ("Location" in the Apple menu) by a script (I tried with AppleScript and Automator but didn't find anything) or to run a script automatically whenever I change the Location. This way I would only have to run either the script or change the Location to adjust all settings.
    Can anyone help me here?
    Thanks a lot,
    Leonard

    Hi Pierre,
    Thank you. Your point number 3 was the solution. (I actually wanted to mark your message as "solved"... Now I have marked the question as "answered").
    While this works, ideally I would like to have one script that does both the changes to the shell (for this I already have a shell script) and the changes to Mac OS.
    On http://developer.apple.com/Mac/library/documentation/AppleScript/Conceptual/Appl eScriptX/Concepts/workwithas.html I found a way to call an AppleScript from the shell (using the #!/usr/bin/osascript interpreter) -- but if I run the script you sent I get
    142:166: execution error: No user interaction allowed. (-1713)
    In fact I would prefer the script to run without user interaction, i.e. to just put in the name of the location that I want to switch to and not display a selection box. I would then just create two or three scripts for my most frequently used locations. I tried a few variants but I didn't manage to set 'R' which is probably the variable containing the new location to a fixed value. Could I ask you again for help with this?
    Thanks again,
    Leonard

  • Changing window size of script  in Non original language

    Hi Gurus,
    Is there any option to change the window sizes of a script in NON ORIGINAL language. Generally it wont allow to change window sizes in NON ORIGINAL language.Is there any workaround.Please help.
    Thanks & Regards,
    Sam.

    It is not possible to change the window size in non-original language.. only changes of windows paragraph formats are possible in original languages...
    If your form is global templet.. make sure you inform the user and on there approval do customise your form and do the respective changes..
    Close the thread once your question is answered.
    Regards,
    SaiRam

  • How to change a parameter with script

    Hi to All,
    Is it possible change to TRUE the Parameter "07_DICTIONARY_ACCESSIBILITY" with a script ?
    If Yes, how can perform this ?
    Thank You and Best Regards.
    Gaetano

    About 07_DICTIONARY_ACCESSIBILITY

  • Change password with apple script

    HI there,
    i'm using the do shell script "dscl . -passwd /Users/my username 1"
    it runs without problems but its not changing the password.
    please advise,
    Rafi.

    You are using "-test" instead of "-passwd" for starters
    then you have a space in the username:
    do shell script "dscl . -test /Users/ rafi test 123"
    should be
    do shell script "dscl . -password /Users/rafi test 123"
    I am not an expert in dscl, but the best way for you to test whether do shell script is going to work is to run it in Terminal first.

  • Change font type through scripting support.

    Please help me for this scripting support. . I have 100 of PSD with text. Text is brush script. I need to change font as some other font through scripting.

    With the Mail App you cannot change the font.

  • Change stage dimensions with script

    Is there a way to change the stage dimesions with a script
    please? Relates to another post below which I can't figure
    out.

    stage width & height properties are read only, you cant
    change the stage size by using actionscript.
    if you are displaying an swf object on a webpage, you may
    consider to change the swf object width & height parameters
    using javascript, & make sure your scaleMode is showAll.
    good luck

Maybe you are looking for