Set prompt in .cshrc causing startup timeout in 4.3

In our generic login for csh users, we set the prompt with:
if ($?prompt) then
if ($?tcsh) then
set prompt='%m(%n)\!: '
else
set prompt='`uname -n`(`whoami`)\!: '
endif
endif
This works with a console login, an ssh, etc. for Solaris and RHEL systems. If we login to tarantella, we are able to login, but when an X application is started, the connection gui opens and the application will probably timeout. This happens with konsole, with full desktop, etc. If I comment out the section setting the prompt, there are no problems. Has anyone seen this? It seems very strange because the /etc/csh.cshrc sets the prompt without this happening.

The expect script was looking for typical prompt characters like '$', '%', or '#' followed by one or more spaces. Since you modified your prompt to ':' followed by a space, SGD was having trouble looking for the prompt character.
So, to answer your question, if you changed the ':' to any one of the typical prompt characters, then it should be ok.

Similar Messages

  • New in 3.4 - ReplicatedCache startup timeout triggered while resyncing

    Something changed from Coherence 3.3 -> 3.4 in handling or setting-up the start-up timeout of the ReplicatedCache service. There was no problem in 3.3 but in 3.4 the service start-up times out while resyncing caches. I found out that the time it takes to time-out is equal to the cluster's packet publisher's resend time-out (which according to recommendations should be set to max(60 sec, 2 * greatest GC pause). In my situation I set it to 5 minutes (with greatest GC pauses of about 1 minute or so). But with large caches this is not nearly enough (it takes up to 30 minutes to resync caches in my situation).
    I worked arround the problem by creating a subclass of ReplicatedCache with an overriden getStartupTimeount() method and configuring it in the tangosol-coherence-override.xml in place of the default ReplicatedCache service.
    Maybe a "startup-timeout" configuration parameter should be adequate here.
    Peter

    Hi Peter,
    Yes, this is indeed a new "deterministic" behavior in 3.4. I will open a corresponding enhancement request.
    The important question though is: why does it take so long to replicate the caches in a first place. I just tested a replicated cache with 200,000 objects (not optimized Java serialization) totaling 100MB and it took about 20 seconds to start a new node (relatively slow development machines). There must be something else going on in your environment if it takes so long to start a replicated cache service. Do you see any "remote GC" messages? What is the Publisher success rate during the start? Did you run the datagram test?
    Regards,
    Gene
    Correction: I was wrong in the original suggestion that the service would not be stopped.
    Edited by: ggleyzer on Oct 15, 2008 2:33 PM

  • Msg regarding "Dgraph did not start in startup timeout of 120 seconds"

    Hi All,
    Baseline update failed with following error message.
    "WARNING: Component 'Dgraph1' did not start in startup timeout of 120 seconds.
    SEVERE: Server component 'Dgraph1' did not start in the allotted startup time.Refer to component logs in /usr/local/endeca/EndAppR7/./logs/dgraphs/Dgraph1 on host MDEXHost1.
    Occurred while executing line 5 of valid BeanShell script:
    2|
    3| DgraphCluster.cleanDirs();
    4| DgraphCluster.copyIndexToDgraphServers();
    5| DgraphCluster.applyIndex();
    6|
    7|
    I've checked the dgraph1 logs and i don't see any difference than usual logs - like what i had yesterday.
    "all dgraph transactions completed"
    "Shutting down dgraph (pid=17398)"
    It had been running well as daily scheduled job since last 1 week.
    it has very small data to be indexed, just few MB.
    I've checked main application log, dgraphs logs, forge logs just in case, and process.0.log in PlatformServices. I don't see any useful detailed information to find out what causes this issue.
    And there was no locked flag on the application.
    to resolve this issue, i just started the Dgraph1 from Workbench and run the baseline update to make sure if it does not fail again. it ran well.
    But i'm wondering why... it happened.
    Can anyone kindly tell me the possible cause or where i can find out the root cause?
    Thanks,
    Edited by: julia on Oct 31, 2012 11:06 AM

    Julia,
    After you issue the start command (either as part of a baseline update or with a runcommand.sh Dgraph1 start), you should see your Dgraph1.log file (in [your_app_folder]/data/dgraphs/Dgraph1/) get updated with information related to dgraph startup.
    You should look there to see if your dgraph is actually starting in the 2 minute timeframe, the dgraph is up when you see the following line:
    pid=[SOME_NUMBER] listening for HTTP connections on port [SOME_NUMBER] at [SOME_DATE_TIME]
    If you don't see that, there is either an error starting the dgraph (you should see that in the same log file) or an error sending the command to start the dgraph (port 8888 not open, EAC Agent not running on the MDEX server, etc.).
    If you do see a successful message starting the dgraph, it's likely that the EAC Central Server (i.e. likely where you ran the command) was not able to determine that the dgraph started. It usually does this by issuing an admin?op=ping to the dgraph port so it's likely that port 15000 (or whereever your dgraph is running) is blocked between those two servers.
    Hopefully, that's enough for you to go on.
    Patrick

  • How to programmatically set the real-time CVI startup DLL?

    Dear NI Support Engineer:
    I'm part of a team of software engineers working on a real-time aerospace app at Honeywell (Coon Rapids, MN campus).  We're using LabWindows/CVI 9.0 and three LabView 8.6 real-time modules.
    Up until now, we've been using the CVI debugger to launch our real-time apps or just copying the app DLL to C:\ni-rt\cvi on the real-time box and setting it as the default startup DLL.
    What we need to do now is create our own directory structure at the root of C: on the real-time box (which, by the way, is using the Reliant file system).
    In fact, we have created directory ug7500 at the root of C: on the realtime box, and two subdirectories (one for data and one for results) directly under directory ug7500.  We'd like to place all of our app DLLs in the ug7500 directory and have the ability to change the default startup DLL programmatically.
    We've been using your LabWindows/CVI Real-time File Copy Utility to set the startup DLL whenever we're not using the debugger.  That was just fine for the first stage of our development.
    At this stage, however, we need be able to set the startup DLL programmatically.  We have not been able to find out how to do this from reading the real-time module documentation.
    Can you either point us at some documentation on programmatically setting the default startup DLL, or e-mail us the instructions, or give us a phone call and explain what steps we must take.
    Thank you very much.
    Vic
    763-957-4168

    Hello All,
    For the reference of anyone else trying to do this, you can modify the INI file to change the startup DLL. Using the INI instrument that ships with CVI (C:\Program Files\National Instruments\CVI90\toolslib\toolbox), you can find the StartupDLLs tag and replace the last value with your startup DLL, such as:
    #include "inifile.h"
    #include <cvirte.h>
    static int status;
    static IniText myINIFile;
    int main (int argc, char *argv[])
     if (InitCVIRTE (0, argv, 0) == 0)
      return -1;    /* out of memory */
     myINIFile = Ini_New (0);
     status = Ini_ReadFromFile (myINIFile, "c:\\ni-rt.ini");
     status = Ini_PutRawString (myINIFile, "LVRT", "StartupDLLs", "c:\\NI-RT\\system\\cvi_lvrt.dll;c:\\ni-rt\\system\\nidevldp.dll;nisysapirpc.dll;niorbp.dll;c:\\ni-rt\\system\\mxsemb.dll;c:\\ni-rt\\system\\nipxism.dll;c:\\NI-RT\\cvi\\myStartup.dll;");
     status = Ini_WriteToFile (myINIFile, "c:\\ni-rt.ini");
     return 0;
    Right now, there are some caveates with using CVI 9.0 to manipulate an INI file to be used on an RT target. The INI functions currently add line breaks automatically for large tag values and adds quotes around the values. For many INI files this is ok (such as TestStand INI files), but it will not work on an RT target. To remove these features, modify the following lines of the inifile.c file located in the same directory as the INI instrument:
    1. On line 38, change the default value of INI_NUM_CHARS_PER_LINE from 80 to a large number such as 8000.
    2. Comment out line 953 (newEntry->addMarkerQuotes = addMarkerQuotes;
    Now you should be able to programmatically change the INI file of your target machine and, therefore, change the startup DLLs.

  • Can we set prompts value in Webi to schedule thru JAVA SDK 4.0

    Hi,
    I need to schedule webi report which has prompts.  Can we have schedule webi report with prompts in 4.0.
    I was able set values for prompts and refresh the webi report using documentInstance object. I think we can't use this object for scheduling right?
    Also, I would like set values from LOV.
    Could you please help to find solution.
    Thanks
    Venkat

    Hello Venkat,
    Unfortunately the feature of scheculing a webi reports with prompts have been deprecated from the
    version 4.0 using the enterprise java sdks.
    In XI 3.1, promtsutil class was used for setting prompts while scheduling a webi report using java sdks, which have been deprectaed from 4.0 and there is no replacement for the same in enterprise java sdks.
    However, this feature was re-implemented in the new Restful web services and is availble for BI 4.0 SP6 onwards as far as I am aware of.
    Please refer to the below document for better understanding.
    http://help.sap.com/businessobject/product_guides/boexir4/en/xi4sp6_webi_restful_ws_en.pdf
    Also please refer to the forum http://scn.sap.com/community/restful-sdk for any queries related to Restful webservices sdks.
    Thanks,
    Prithvi

  • IOS 7 Safari (as well as OSX 10.9) Credit Card prompt "not now" causing issues

    Experiencing the same problem as this thread from stack overflow. safari on iphone/ipad http://stackoverflow.com/questions/21769058/ios-7-safari-as-well-as-osx-10-9-cre dit-card-prompt-not-now-causing-issues
    Safari on ios7 devices stops my form from submitting when it prompts to remember card.
    there must be a workaround other than pulling a pw field off the page???

    You can condense it down to a couple of options, shadowbeast, if you have a computer that is regularly maintained, not over-full, doesn't have much in the way of third party haxies installed, has had its directories checked recently, don't try to install the update while simultaneously running other software, etc etc. Trouble is in many cases such parameters aren't met!
    Using an update situation as an opportunity to undertake the general maintenance that should be done every month or so on any computer , (even if it is a Mac!) helps to forestall many other problems, too, as well as helping to ensure that the update process goes smoothly.
    I agree that the "Combo" update can be a good idea, sig, and I've usually done so in the past myself. In some circumstances it can certainly help to overcome problems that have arisen along the way. These days, however, the updates themselves tend to be very large (in this case the "combo" version is over 800 MB in size) and I'm very aware that many , many people use the smaller Software Update versions. These seem to be less problematic than they used to be in the past, though if anything is problematic after the installation downloading the Combo and re-installing it over the top of the SU version is a very good idea.
    I've been trying the SU updates regularly myself since SL arrived on the scene, and all have gone smoothly. Mind you, this has been on a couple of pretty well maintained machines.
    Cheers
    Rod

  • .mov file 'converting' causes startup disc full msg

    QT player version 10.3
    OS X version 10.9.3
    I have a 2TB external drive with most of its space empty. I have a set of 15 .mov files (their format is in the screen cap attached at the end of this question) on that drive which I'm trying to open and trim in the QT player. When I open them as a set, each one of them says 'converting' on it and the process takes a few hours. Finally, the process fails and I get a message that my startup disc is full. The QT player is obviously using my internal disc (the startup disc) as the scratch disc rather than the 2TB external (which is write enabled). When I cancel the process, the startup disc goes back to normal size and the scratch files are deleted.
    1. Why is the QT player converting a .mov file to another .mov file?
    2. Why isn't it using the file's location as its scratch conversion location?
    3. There are no preferences in the QT player so how do I set this as a pref?
    4. Is there an alternative app to use for a simple trim operation to a .mov file of this (see screen cap) format?
    Thanks!

    stevens-mbp:~ Steven$ read InstalledLegacyVideoCodecs
    my system showed the exact same list as yours.
    This is the list of "legacy" codecs available to be enabled on your system.
    For stevens-mbp:~ Steven$ qtDefaults read LegacyVideoCodecs
    my system returned no results and displayed another stevens-mbp:~ Steven$ prompt.
    The results indicate you have not enabled any of the available "legacy" codecs while my results indicate that I have re-enabled both Motion JPEGA and Motion PNG for use on my system. (I.e., MJPEG is a handy medium efficiency intermediate codec for editing/conversion in/by QT 7 based apps while the MPNG is an HQ alpha-channel capable codec formerly used by many professional and prosumer level videographers. While I only class myself as a "hobbyist," I still find these two codecs particularly useful on occasion.)
    I'm going to start with the 2008 version of streamclip and see what happens. My task for these clips is actually quite simple: trim off bits of the beginning and end (they're music performances and we just want the performance and not the clapping) and then export for youtube. I'll report back once I get into the project using your great advice.
    Workflow is basically the same for either the free MPEG Streamclip or QT 7 Pro ($29) apps.
    A) TRIM ENDS OF CLIP
    1) Scrub the playhead to the approximate frame you wish to edit
    2) Use right and/or left arrow keys to locate exact frame you wish to edit
    3) Use the "i" and "o" keys to set "in" and "out" edit points
    4) Use the "Trim" or "Trim to Selection" Edit menu option to physically trim content
    5) Save or export the results to a new file.
    NOTE: While step 4 is not really required for MPEG Streamclip, I recommend you use it as different apps can store the resulting file differently causing potential problems in the way QT and non-QT apps handle the resulting content.
    B) TRIM MIDDLE OF CLIPS
    1) Scrub the playhead to the approximate frame you wish to edit
    2) Use right and/or left arrow keys to locate exact frame you wish to edit
    3) Use the "i" and "o" keys to set "in" and "out" edit points
    4) Use the "Cut" Edit menu option to physically remove selected content from the middle of your clip
    5) Repeat steps 1 thru 4 as needed
    6) Save or export the results to a new file.
    NOTE: This approach is handy for removing things like commercial segments from the middle of broadcast recordings.
    Good Luck!
    Thank you for your service.
    My pleasure.

  • Setting Preferences--Structured Authoring cause FM11 to crash

    Hello,
    I changed Preferences setting to Structured Authoring.  I was prompted to restart FrameMaker 11.x.
    When I tried to open a file, I got this error message:
    Any suggestions on what I might have done wrong?  If there is a bug or workaround for this, I would love to find it.  Thanks!  Laura Ferrer

    Hi Arno!
    Did you happen to change the Short Name of your Home folder?
    If so, review the articles linked to below.
    Return to Default Desktop, Apparent "Loss" of Home Directory
    My home folder and desktop are different than before
    Recover from renaming your Home folder, authored by Dr Smoke
    "...I usually have between 4 to 8 Gb available on my 'Macintosh HD'"
    Depending on the size of your HD, that may not be sufficient.
    Insufficient available space, can cause performance issues, system corruption, and possible loss of data.
    Depending on Mac system usage habits, it is a general recommendation, to keep 10% to as much as 20%, of the Total capacity, available at all times.
    Review the suggestions, in the documents that I have linked to below.
    Authored by Dr Smoke:
    Problems From Insufficient RAM And Free Hard Disk Space
    Freeing Space On Your Mac OS X Startup Disk
    Have you ever run any routine Maintenance procedures, as suggested in the articles linked to below?
    Mac OS X 10.3/10.4: System Maintenance, authored by Gulliver
    Maintaining Mac OS X, authored by Dr Smoke
    ali b

  • Failure of archiving to standby causes connection timeouts

    Our primary database has encountered errors caused by a full disk at the physical standby system. The errors in alert log file and trace files looked like this:
    ARC1: I/O error 272 archiving log 9 to 'tifltsb2'
    This destination is not mandatory so I believed that errors while archiving to it should not cause any problems in the primary database.
    My question is why did the database suffer of connection timeouts during the period of failure to archive to a non-mandatory destination. Are there any parameters that I can set that will prevent such problems from affecting the primary?

    What version do you use?

  • Could permissions cause startup problems?

    Based on some strings I found about problems with permissions that some have had when upgrading to leopard, I'm suspecting permissions are the cause of my computer's not recongnizing my primary drive on startup.
    I had been fiddling with permissions of several users on the computer, trying to set up an itunes library in the shared folder that all could access. I'm running tiger but some folks in this discussion area seem to be the ones knowledgeable about permissions.
    Now I can only boot up from my secondary drive (which has panther installed) or from my tiger dvd. The main drive shows up as a startup choice in both places, but it doesn't work. I repaired permissions with DU but no help. The main drive does NOT show up as a choice when I do a restart / hold option key.
    Is it possible that some change I made to permissions settings has caused this? If so, can someone tell me what I would do to set them right? The main drive shows up on my secondary's desktop, and the contents are completely accessible that way.
    Also, I already did a re-install of tiger, but retaining the settings -- not a clean install. That changed nothing. (really really don't want to start from scratch with a clean install, but if I must...) The main drive itself, in terms of hardware, seems to be fine according to both the DU and diskwarrior.

    I'm pretty sure i have a duplicate an not a clone, on my external drive, and yes thank goodness I've got those copies of all my files in case things go way bad.
    Ok, to recap and update: Computer has a primary drive running tiger, a secondary drive running panther and a tiger installation disk in the tray. I lost the ability to boot up the primary, and I think there is a strong chance it has something to do with permissions settings gone awry. I was messing with user permissions while trying to set up a common itunes library for multiple users before the problem started. (I respect you feel that's unlikely Kappy, you're probably right, but if it's possible... I want to know if there's an option that avoids losing my settings.)
    Under a normal restart, the computer chooses the install disk. Both drives show up in the install disk's startup utility. I can choose the secondary and startup to it. (and the primary shows up on the desktop.) When I choose the primary as the startup, no go -- it starts up to the install disk.
    I used DU to repair persmissions on the primary drive, and also ran DU's repair disk, and Diskwarrior. The tests indicated the drive is just fine, but none of that helped a bit. I reset the p-ram and the nvram -- no help. The primary also shows up when I open the startup system pref on the secondary, but choosing it does not work -- restarting still boots to the install disk. The primary does NOT show up as an option when I do a restart / option key.
    I did an archive and install from the tiger disk, retaining my settings (so the system updates are now gone) -- no help, still won't boot. I really really want to avoid an archive and install choosing to delete settings. There are several users on there, and it would take a lot of time and trouble to put humpty together again.
    Here is something I found in discussions, could this help me? --
    Get the Mac to set up an additional administrative account. You can then change your old account. I've tried this in 10.4.10 without problems.
    This was Posted by: JoseAranda at September 9, 2006 3:48 AM
    OK, restart your computer, hold down Command-s and type in the following:
    /sbin/fsck -y Enter
    /sbin/mount -uaw Enter
    rm /var/db/.applesetupdone Enter
    # The rm command is the remove command which deletes the file.
    # Robert: I'd rename the file via: mv /var/db/.applesetupdone /var/db/.applesetupdone.old
    reboot Enter
    Once you've done that the computer reboots and it's like the first time you used the machine. Your old accounts are all safe. From there you just change all other account passwords in the account preferences!!
    end of posted by: JoseAranda
    http://www.askdavetaylor.com/howdo_i_reset_my_mac_os_x_admin_rootpassword.html
    You will need to scroll down to see this post. Search for applesetupdone
    --Could creating an additional admin account, (which would have properly configured permissions,) make the drive bootable again? I'm not an advanced computer person, not much experience working in the terminal or open firmware, but I can follow directions. If I followed the above advice to create an additional admin account, how would I know if I was creating it on the primary or the secondary drive? I notice there is a terminal utility on the tiger disk, coud I type in the commands there?
    Or if the above is unlikely to help, is there something else I could do through the terminal that could repair or reset any user/ admin / persmission settings on the drive that might be causing its unbootability?

  • Startup timeout and packet-delivery timeout

    Hi,
    At the moment it takes my first cluster node approximately 30 seconds to start and setting the packet-delivery timeout smaller than this means the system cannot start. I'm trying to reduce the packet-delivery setting to improve responsiveness during failover caused by hardware failures. I think 15-20 seconds would be ideal, allowing for GC pauses.
    Subsequent nodes can start in a couple of seconds.
    Is this a reasonable time to expect the first Coherence node in a cluster to start up? What kind of values is everyone else working with?
    Thanks & Regards,
    Martin
    The error when packet-delivery is less than 30 seconds:
    2009-11-24 13:04:05.568/24.141 Oracle Coherence GE 3.4/405 <Error> (thread=main, member=n/a): Error while starting cluster: com.tangosol.net.RequestTimeoutException: Timeout during service start: ServiceInfo(Id=0, Name=Cluster, Type=Cluster
    MemberSet=ServiceMemberSet(
    OldestMember=n/a
    ActualMemberSet=MemberSet(Size=0, BitSetCount=0
    MemberId/ServiceVersion/ServiceJoined/ServiceLeaving
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onStartupTimeout(Grid.CDB:6)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.start(Service.CDB:27)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.start(Grid.CDB:38)
         at com.tangosol.coherence.component.net.Cluster.onStart(Cluster.CDB:317)
         at com.tangosol.coherence.component.net.Cluster.start(Cluster.CDB:11)
         at com.tangosol.coherence.component.util.SafeCluster.startCluster(SafeCluster.CDB:3)
         at com.tangosol.coherence.component.util.SafeCluster.restartCluster(SafeCluster.CDB:7)
         at com.tangosol.coherence.component.util.SafeCluster.ensureRunningCluster(SafeCluster.CDB:27)
         at com.tangosol.coherence.component.util.SafeCluster.start(SafeCluster.CDB:2)
         at com.tangosol.net.CacheFactory.ensureCluster(CacheFactory.java:951)
         at com.tangosol.net.DefaultConfigurableCacheFactory.ensureService(DefaultConfigurableCacheFactory.java:748)
         at com.tangosol.net.DefaultConfigurableCacheFactory.ensureCache(DefaultConfigurableCacheFactory.java:710)
         at com.tangosol.net.DefaultConfigurableCacheFactory.configureCache(DefaultConfigurableCacheFactory.java:919)
         at com.tangosol.net.DefaultConfigurableCacheFactory.ensureCache(DefaultConfigurableCacheFactory.java:277)
         at com.tangosol.net.CacheFactory.getCache(CacheFactory.java:689)
         at com.tangosol.net.CacheFactory.getCache(CacheFactory.java:667)
         at com.changingworlds.datagrid.cache.Cache.init(Cache.java:111)
         at com.changingworlds.datagrid.cache.Cache.initializeNamedCache(Cache.java:95)
         at com.changingworlds.discovery.DiscoveryMain.initSpring(DiscoveryMain.java:201)
         at com.changingworlds.discovery.DiscoveryMain.createDiscovery(DiscoveryMain.java:154)
         at com.changingworlds.discovery.DiscoveryMain.main(DiscoveryMain.java:78)
    Edited by: MartinMc on Nov 24, 2009 1:15 PM

    Hi Martin,
    The packet delivery timeout relates to death detection, not to cluster formation. You'll want to have a look at the join-timeout-milliseconds specified within the multicast-listener element (see http://coherence.oracle.com/display/COH35UG/multicast-listener) if you wish to change the amount of time it takes to form a new cluster. The reason for this timeout is to prevent a new node from accidentally forming a secondary cluster if the existing cluster members are temporarily unreachable while the new node starts. Assuming you are running more then just a few nodes in your cluster, you should be fine lowering this value to 5-10s.
    I don't however see how this relates to failover unless by failover you mean starting an entirely new cluster after the complete loss of the formerly running cluster.
    thanks,
    Mark
    Oracle Coherence

  • Deleting "Prompt User" dialog causes VI to lock PC or run very slowly.

    I have been coding a VI in LabVIEW 8.2.1 for several weeks and had to go back and remove some "Prompt User" dialog boxes.  After removing them, the VI would cause my PC to become unresponsive.  In an attempt to isolate the problem, I started to remove sections of code and discovered that there is a single dialog that seems to be causing this issue. 
    The VI runs fine with the dialog left in, but causes problems when removed.  Even if the dialog is logically impossible to enable, it still runs fine.  I currently have the VI set to run at a high priority because timing is critical for this application.  Lowering the priority seems to alleviate the issue, but I would rather not do this. 
    I am not sure how to proceed from this point, and I had trouble finding a similar issue in the forums.   Perhaps this problem is specific to my PC.  I would appreciate any feedback.
    I have attached the VI with this post.  I have removed almost all functionality from the VI but it still demonstrates the problem .  This version does not lock the computer, but does cause it to run very slowly when it misbehaves. 
    If you need any more information, let me know.
    Attachments:
    ProblemDialog.vi ‏46 KB

    The reason probably has to do with you having a loop that is set to run at full speed.  This can hog processor time.  Insert a "Wait.vi" or a "Wait until next ms multiple.vi" inside your while loop and wire in a value of 10 ms and see if the problem goes away.  Even wiring in a value of 0 or 1 ms might do the trick.  If your vi is meant to react only to user input, you could even put in a wait of 100 or 200 ms, and the user will not notice it.  This way your processor will have lots of time to run other tasks or applications.
    By the way, your vi did not slow down on my system, but that is probably because it is a multiprocessor system.
    Message Edited by Sudhir Gopinath on 06-14-2007 01:07 PM
    Message Edited by Sudhir Gopinath on 06-14-2007 01:10 PM
    S G
    Certified LabVIEW Architect, Certified TestStand Developer, Certified Professional Instructor

  • Setting Prompt Directory path using a string variable?

    So when you define a Prompt you get the form P[promptname.wav] and all is good.  What we want to do is have that prompt name be retrieved from a prompt directory which is defined by a string.   So assume all your prompts have the same numbers like 1001.wav but the actual file is customized based on things like Sales/1001.wav and Marketing/1001.wav   and you want to have a StringValue DirectoryName set the Directory to Sales or Marketing.   The Script does not seem to support setting P["DirectoryName"/1001.wav] where Directory Name is a string variable.    Is there a solution to this other than changing the entire prompt to a string type and dropping the P[] data type entirely?   

    I am working with a similar issue.   It is simple enought to set the Prompt Directory but when it is a variable it seems to have different results.  The attached simple script is used to demonstrate Sam's recommendation.  The XML document is embedded in the script variable, so you dont need to create it.   So the script reaches into the XML document and pulls up the variable strDirectoryName and then adds "/" to it and then sets the strPromptDirectory.   I have done it three ways:  Hard coded, string value for prompt' and prompt data type resolved from string.  As you single step through the script you will find that all values populate appropriately, but only the hard coded play prompt actually plays the prompt.  The other two assemblies fail.  (Clearly it assumes the prompt 10001.wav is in the directory Generic/ if you want to try it).    Written in  Version 8.5 editor.  

  • How to Set Prompt of a Field in OAF using lookup

    Hi Gurus!!
    We have a requirement to change the Prompt of some fields and also have to give the flexibilty to the business user's so that in case if they wants to change the promt of a field in future then they should also be able to change it.
    Is it possible to set the promt of field using lookup. So, that if users want to change it then they can go and change the lookup value .
    If yes, can you please give me an example of this code .
    Please let me know if any alternative approch is there to achive this requirement.
    Any help would be grately appreciated.
    Thanks
    KR

    Hi KR,
    System.out.println(">>>"+pageContext.getMessage("FND", "FND_TEST1", null)); *//displying my custom msg*
    is the message is printing the value,?
    projNum.setPrompt(pageContext.getMessage("FND", "FND_TEST1", null));
    Instead of above can you try with a hardcoded value like,
    make sure projNum is not null, you can just print the value projNum.
    projNum.setPrompt("Test Prompt");
    And one more way you can try is create a VO which will pickup the value from Lookup
    and use dataBinding (PROMPT_ATTR) and set the value.
    You can search the forum for how to use the dataBinding
    Eg.
    OAMessageTextInputBean mTextBean_Y =
    (OAMessageTextInputBean)tbl.findChildRecursive("NU_Y");
    if (mTextBean_Y != null) {
    OADataBoundValueViewObject promptNU_Y =
    new OADataBoundValueViewObject(mTextBean_Y,
    "QuestionName");
    mTextBean_Y.setAttributeValue(oracle.cabo.ui.UIConstants.PROMPT_ATTR,
    promptNU_Y);
    Thanks,
    With regards,
    Kali.
    OSSi.
    Added sample code.

  • Setting prompt value based on another prompt selection

    I have 3 prompts. The first one contains 'Y' and 'N'. The other 2 are for start-date and end-date so the report runs for this date range. I would like the start-date to be set to, say, '01/01/2009' if the user selects 'N' in the first prompt. If the user selects 'Y', the start-date will be set to, say, '02/01/2010'. These values are not dynamic though.
    Please let me know how I can do this.
    Thanks,
    Bhusan

    Sandeep,
    Here is what I did.
    1. The first prompt has 'Y' and 'N' that comes from a database table. So did not have to create these.
    2. The second prompt - Used the following SQL for Show - select (case '@{LegacyVal}{N}' when 'N' then '01/01/2009' when 'Y' then '02/01/2010' end) from SubectArea."Registration Date". I kept "All Choices" checked. In the default to, I selected "All Choices".
    Now when I test this and select any value from the first prompt, the second one does not change. It keeps the All Choices value always. What am I doing wrong here? I went through the earlier posts and tried to follow the steps, but looks like I am not doing the right way.
    Thanks,
    Bhusan

Maybe you are looking for