Problem in using Fire Action using an Image

I have used image icons on my table rows so that if the user wants to edit or delete a record he shall click on the image icon which fires a "Fire Action". Due to that I render a region at the top of my table and populate with the record's data to be edited or deleted.
Now if the user clicks on the edit button and the edit region renders at the top of the table region and without cancelling it or saving it, he goes out of the page.
When he again comes back to the page, this Edit/delete region is still rendered but ofcourse without any record's data.
To stop this I tried to put the unrendering function in the process request of the controller of this page. Here the problem is that, if I put the unrendering function in the process request of the controller, it shall unrender when the person opens the page, but again it shall not render the Edit/Delete region when the user clicks the image icon on the table bacause every fire action goes through the process request and the process request unrenders the region.
Kindly suggest how can I take care of this situation, as often the user goes out of the page without clicking on cancel or save button of the edit/delete region and lateron when he revisits the page and enterd the data, it gives Stale data error.
Regards

Hi Gaurav,
thanks for your reply, however I used the following in my process request:
String PgCurrentAction = pageContext.getParameter("PgCurrentAction");
if(PgCurrentAction==null){
//When the page is loaded, then PgCurrentAction shall be null.
//When the control goes through the Process Request function on clicking an Image action of the page, then PgCurrentAction shall return the name of the
//...Image Action.
//I call the SPEL to hide if the region is rendered.
So if the Process Request is entered while loading the page, then it shall Unrender/Hide the region is it is rendered, and shall not do so when Process request
is entered while clicking an image button for Fire Action.
Thanks
Regards

Similar Messages

  • Can Fire Action be removed using personalization?

    Hi,
    One of the scenarios in a custom application that we are developind is,
    1. Status of item is displayed using a colored image.
    2. Admin user can click on the image and edit status.
    3. Noraml user can see them image but can't click and change.
    We are using "Fire Action" to redirect user to edit page. (Satisfys admin requirement). We don't want to develop another page for normal users.
    Can we remove Fire Action for regular users by using personalization?
    Regards,
    Vigni

    This is the correct way of doing it, you would be having this mapping already defined in the DB for you to identify the role of a user.
    I dont think you can control this at runtime using personalization in a simple way.
    what you can do as a workaround is that, you can define another column/item and hide/show, either the new item (without link to navigate - For Normal user) or the existing item with the link based on the responsibility, this can be done using personalization.
    Thanks
    Tapash

  • Using Javascript & Actions to resize an image and add the filename as text

    Hello,
    I am currently working on a way to take an image, resize it and add exactly what is in it's file name (before extension) as a text layer. I have succeded in this BUT am having issues with file names that require more than one line of text.
    I need the text to align to the bottom of the image & the script or action must then resize the image so that the text does not overlap.
    Any ideas on how this can be done?
    At the moment I am using:
    -"Fit Image.jsx" to resize my image to a specific size (This was included in the Photoshop CS5 scripts)
    - A script to add the file name without extension and place the file name at a specific position.
    AdFileName.jsx
    if ( documents.length > 0 )
    var originalRulerUnits = preferences.rulerUnits;
    preferences.rulerUnits = Units.PIXELS;
    try
      var docRef = activeDocument;
      // Now create a text layer at the front
      var myLayerRef = docRef.artLayers.add();
      myLayerRef.kind = LayerKind.TEXT;
      myLayerRef.name = "Filename";
      var myTextRef = myLayerRef.textItem;
      // strip the extension off
      var fileNameNoExtension = docRef.name;
      fileNameNoExtension = fileNameNoExtension.split( "." );
      if ( fileNameNoExtension.length > 1 ) {
       fileNameNoExtension.length--;
      fileNameNoExtension = fileNameNoExtension.join(".");
      myTextRef.contents = fileNameNoExtension;
      // off set the text to be in the middle
      myTextRef.position = new Array( docRef.width / 2, docRef.height / 2 );
      myTextRef.size = 12;
            myTextRef.font="Arial-BoldMT"
            //set position of text
            myTextRef.justification = Justification.CENTER;
            myTextRef.kind = TextType.PARAGRAPHTEXT;
            myTextRef.width= docRef.width;
            myTextRef.height= docRef.height/ 2;
            myTextRef.position= [0, docRef.height * 0.88];
    catch( e )
      // An error occurred. Restore ruler units, then propagate the error back
      // to the user
      preferences.rulerUnits = originalRulerUnits;
      throw e;
    // Everything went Ok. Restore ruler units
    preferences.rulerUnits = originalRulerUnits;
    else
    alert( "You must have a document open to add the filename!" );
    Can the position be changed to allow more rows of text but keep it aligned with the bottom of the layer?
    How can I script in a way to make the image resize based on the amount of text lines?
    Any help would be greatly appreciated.

    You can add a text layer any where the only thing you need to worry about is the size of the font you use.  You can normally calculate a font size by saving the images resoltuion and then setting its resolution to 72 DPI calculate a font size basied of the images pixel width and the number of characters you want in a line. After adding the text layer you can restore the image to its original resolution and align the text layer by making a selection and alignint the text layer to the selection.  There are nine posibilites like the positions in the selection you can align to like a tick tack toe board. You need to use a script to add the text layer because your retrieving the filename.  The positioning of the text layer could be done easily in an action the would use the scriot to add a text layer the do a select all  the align the added text layer to the selection.
    About your script don't make text paragraph just add new line characters to make a multi line text layer So it can be positioned easily
    I do just that with my stampexif action.  The action uses my stampexif Photoshop java script to add a multi line text layer containing some formatted EXIF data then the action centers the text layer and add a layer style to it. Link http://www.mouseprints.net/old/dpr/StampExif.jsx Example

  • When I have video clips on my timeline, they do not play in the monitor screen. I hear the sound track but can not see the image. To test if my new files are somehow the problem, I went back and used video files that I used successfully a year ago, and th

    When I have video clips on my timeline, they do not play in the monitor screen. I hear the sound track but can not see the image. To test if my new files are somehow the problem, I went back and used video files that I used successfully a year ago, and they no longer play in the monitor window. I hear the sound track, but do not see any video. Have I changed some setting that controls video playback in the monitor window?

    Randy Ruttger
    Thanks for the follow up.
    Missing in this equation were the version of Premiere Elements that you were using and the computer operating system on which it was running. But...
    The deed is done. But.....Until now and after you went ahead and moved to version 12, we now learn what version of Premiere Elements you were using. We still do not know the computer operating system involved.
    You just said Premiere Elements 10. Premiere Elements 10 is hit by a serious known display issue if the computer uses a NVIDIA GeForce video card/graphics card. In this issue, the only remedy is to roll back the driver version to about May 2013. The description of the problem and how to do the roll back are described in one of the Announcements at the top of this forum. What video card/graphics card does your computer use?
    On another front, Adobe will be releasing a new version of Premiere Elements any day now. No one but Adobe knows the feature set for the new version. That type of information is announced at the moment of release of the new version.
    So the remedy to the problem that you presented in this thread could have been...
    1. Rolling back the NVIDIA GeForce driver version to about May 2013 if possible (Windows 8 or 8.1 64 bit, may not be possible)
    2. Move to another version of Premiere Elements (which you did)
    I offer the above for consideration so that you can review your decisions. We are pleased to learn that Premiere Elements 12/12.1 works for you.
    Please do not hesitate to ask questions and ask for clarifications, but remember that the answers are in the details.
    Best wishes,
    ATR

  • Navigating a zoomed image with shift+end... but using an action or a script?

    hello,
    i a have a crop script and with all my images i have to clean the floor...
    in that script the image goes to 200% zoom, them manually i hit "shift+end" to move to the bottom right of the image... so that i can clean that floor.
    can you help me automate the process with a script or lead me how to create the code?
    shift+end or shift+home using script
    thank you in advance
    Vitor Rompante

    Do you know how to code Photoshop Scripts in javascript.
    It is also impossible is Actions and  Script to give users complete manual control only interactive controls of a step is possible.    For complete manual control the script and actions need to be broken in to two actions or two scripts.  It can also be done by adding stops in actions that divide actions into part that can be used to continue execution after the stop and user operations.
    If its the just the bottom area you want to crop away its a relatively easy action to record. You would just inster a fit on screen menu item, record a select all,  then use menu select>Transform selection rotate the selection 180 and move up the bottom about 10 % commit the transform and finally record menu  image>crop. Stop recording the action and turn on the transform steps dialog to make the step interactive.  When the action is played the transform dialog bounding box will display and be interactive. You have control of the transform. If the recorded 10% bottom off is acceptable all you need do is hit enter to complete the crop.
    Try this one http://www.mouseprints.net/old/dpr/cropfloor.atn
    Crafting Actions Package UPDATED Aug 10, 2014 Added Conditional Action steps to Action Palette Tips.
    Contains
    Action Actions Palette Tips.txt
    Action Creation Guidelines.txt
    Action Dealing with Image Size.txt
    Action Enhanced via Scripted Photoshop Functions.txt
    CraftedActions.atn Sample Action set includes an example Watermarking action
    Sample Actions.txt Photoshop CraftedActions set saved as a text file.
    More then a dozen Scripts for use in actions
    Example
    Download

  • Problem with Batch Processing an Action using a Graphic Style Library

    Hi,
    I have ~100 files in which I need to change the fill and stroke of all the linework. I created Graphic Styles for all my new features. I then created an Action that sets a fill and stroke color, Select Same Fill and Stroke, then applies the new Graphic Style. This repeats for about 20 variations (ie; select all Fill=X, Stroke=Y, then apply Graphic Style A. Select all Fill=X2, Stroke=Y2 then apply Graphic Style B). It runs fine in my test file. The problem occurs when I try to run it in batch mode. I have my new Graphic Style Library set to Persistent, so that it is open for every file. But the action does not apply the new Graphic Styles. It's like it doesn't see/read the Graphic Style Library. I don't get any errors, the action completes. It just doesn't apply anything.
    Does anybody know what I am doing wrong? Are you not able to use an action to apply a graphic style from an added Library?  Do I need to add the graphic styles to the Graphic Styles Panel and have the action reference the Panel, not the Library?
    Any help or insight is appreciated.
    M

    Try this:
    Copy an item that has the Graphic Style to the clipboard before starting the action. Then put a paste step followed by a delete step at the start of the action.
    Hope that helps.
    Mike D.

  • I have used fire fox for a long time but have nothing but problems loading web sites..i think the time has come to uninstall firefox and go with internet explore..im tired of wasting my time trying to load web pages.

    Question
    i have used fire fox for a long time but have nothing but problems loading web sites..i think the time has come to uninstall firefox and go with internet explore..im tired of wasting my time trying to load web pages.

    does not solve problem..guess i'll have to get rid of firefox..never had problen before but to much hassle loading web sites.

  • In my pc iam using fire fox now it is asking please check procky setting i am using 13.0 how can i solve this problem

    in my pc iam using fire fox now it is asking please check procky setting i am using 13.0 how can i solve this problem

    Firefox, please update to Firefox 31. [[Update Firefox to the latest version]] 13 is not supported anymore.
    After that, [[Advanced settings for accessibility, browsing, system defaults, network, updates, and encryption]]

  • Bridge CC crashes while using arrow keys to switch images

    Adobe Photoshop CC 2014 Adobe Bridge 2014 on Mac is crashing every time I press an arrow key to move through images in bridge. I can click to manually select images with no problem, but using the up/down arrow keys to move to the next image up/down brings up the spinning beach ball and immediately locks the program up, requiring a force quit.
    Did the usual Mac permissions and fsck stuff to no avail. Ideas?
    Dan

    Thanks for moving my post to this correct forum. (I'm afraid I missed it when I originally posted.) A bit more information based on attempts to fix and on further attempts to use the program.
    After launching Bridge — before I select any specific image — it initially seems to work correctly. For example, I can use menu items and select and open folders. However...
    Once I drill down through folders to show raw files in the browser the problems begin. I can manually select an image by clicking on it, but the program the locks up if I do things such as attempt to navigate to another image using the up/down keyboard arrows or select anything from a menu that would perform an action on the image. (The problem happens with any image selected — not one particular image, and with images that worked fine until 48 hours ago.)
    ACR still works. I can double click an image and open the raw converter, and I can doubly click a smart object image in Photoshop do go back to the raw editor and it allows me to edit.
    I did the step of holding down command-option-shift at Bridge startup and selecting all three options to delete the cache and so forth. Still no joy.
    I did the usual Mac disk/file system repair stuff — repairing permissions and repairing disk — to no avail.
    I downloaded and reinstalled Bridge but the problem persists.
    Since I have a full backup of the drive on which Bridge is installed and since this backup drive is bootable, I double clicked the copy of Bridge on the backup drive... and it opened (slowly!) but worked correctly. (Not that this means much, but my second instance on my laptop continues to run fine.)
    I'm stuck, in a serious way, at this point. Thoughts?
    Thanks,
    Dan

  • I like to know when i use fire fox why it take so much resource of my computer ? it almost 1/4 of my 4gig of memeory , ihave 6,7 page of firefox window open

    i like to know when i use fire fox why it take so much resource of my computer ? it almost 1/4 of my 4 gig of memory , i have 6,-8 page of firefox window open at cpu level its is almost 25% been used up. i see its taking too much resource i wonder why ?? how not to take so much and it crashes often.. any help,ive 24.0 ,

    Firefox add-ons take some memory. This amount varies depending on the add-on.
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * On Windows you can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac you can open Firefox 4.0+ in Safe Mode by holding the '''option''' key while starting Firefox.
    * On Linux you can open Firefox 4.0+ in Safe Mode by quitting Firefox and then going to your Terminal and running: firefox -safe-mode (you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    [[Image:FirefoxSafeMode|width=520]]
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    Does this decrease the memory usage? Please report back soon.

  • How to use dynamic action to fill multi item on a page ?

    Hi..
    I want to fill multi items on a page so I build a dynamic action ( Execute PL/SQL Code ) to do it .The problem is that when the page loads I can't see any data and I tried to see the session values using debug and I found data. Moreover when I save the row I got these data saved.
    So what is the magic there?
    Thanks

    Firstly, to get the multi-select populated with "pre-selected" values the easiest approach is to use Computation or Process at a process point On Load Before Header or After Header or Before Regions.
    All you need to do is populate your "Select List " page Item with : (colon) separated list of selected values. E.g is you want A,B and C out of A,B,C,D,E selected then get A:B:C into the Page Item.
    If you have used Dynamic Actions, what is your event on which the action fires? For Dynamic-Actions the page (HTML DOM) needs to be existing , so it must fire after the page has loaded.
    Regards,

  • How to remove fire action to image field depending on condition

    Hi,
    I have one field as Image and having fireaction event in table and all remaining fields are Mesagestyled text
    Requirement is need to remove fire action for action some rows depending on condition.
    Pls help, how to do this?..
    Thanks in advance,
    Hanimi..

    Hanimi,
    You need to make use of switcher Region, for achieving your requirement. Refer Developer Guide for more details on Switcher Region.
    Regards,
    Gyan

  • Anyone here used Fire-i by unibrain? need help!

    I just bought the Fire-i webcam by unibrain, supposed to be pretty good, comes with little tripod and eveything. Natively supports os x, only problem though, is that they dont give you any software to control it or set it up.. auto focus isnt working.. everything is just blurry. Also it says you can do still shots and shutter frame, but there's no program or anything to use any of these features.
    Also, I need a good program for setting up a webcam for a live feed for surveillance purposes, anyone know any?

    Hello Clshannon1
    I don't use Fire-i, but if you get no better answers here, you should be able to get help directly from Unibrain or their website.
    The Fire-i™ Digital Camera Technical Specifications clearly states that Focus is
    "Manual, from 5 mm to infinite".
    I did not see "auto focus" listed anywhere, but the Fire-i™ Digital Camera Product Description page does claim adjustable "Sharpness". If adjusting the manual focus does not give you a satisfactory image, try adjusting Sharpness, too, to see if that gives you what you need.
    The Fire-i™ Digital Camera Product Description page claims the following Video Modes: YUV (4:1:1, YUV 4:2:2, YUV 4:4:4), RGB 24-bit formats, and Monochrome-8bit. For use with these available video modes, my quick scan of the Fire-i™ Digital Camera FAQ page includes the following answers about which software applications will work:
    Software that support the Fire-i™ Digital Camera are:
    btv™ & btv™ Pro, QuickTime Broadcaster 6™, etc."
    and
    ... a full version of the ISPQ™ application is included with every Fire-i™ digital camera.
    There may be other info in the FAQ, and it seems that some of the answers may be directed towards PC rather than Mac users.
    If you need more help than is available from the documentation that came with your camera or the unibrain web site, you can discuss specifics directly with Unibrain by using the info from the CONTACT Unibrain page.
    EZ Jim
    PowerBook 1.67 GHz w/Mac OS X (10.4.11) G5 DP 1.8 w/Mac OS X (10.5.2)  External iSight

  • I used to use PS "actions" are they in PSE 8 for Mac?

    I have been using an old version of Photoshop for Mac. Under  the Windows heading there was an Actions option where I could "record" some actions to edit photos and the"play" it to perfrom the same actions on different photos.
    In PSE 8 for Mac I see that under Guided Edit there is an Action player with 4 presets, none of which suit my purposes. It says that I can add (from where I don't know) or create my own actions sets by referring to the Help menu. When I search the help menu for " Create Action set" I get 15 topics and none of them seem to be about creating actions sets.
    I'd like to be able to record a set of acttions such as OPEN FILE- SIZE IMAGE-UNSHARP MASK-SAVE-CLOSE- and then play it back.
    Help appreciated.
    thanks,
    Rob

    When you save an action from photoshop 7, you should be able to
    choose the place for saving (i.e. desktop).
    The default place for saving actions is very often in the ps7 application folders.
    Something like: Applications>Photoshop 7>Presets>Photoshop Actions.
    As far as what actions from ps7 work in pse8, try to record steps in your
    action that are available in pse8. Something like unsharp mask will work,
    but not a command such as convert to cmyk. There are alot of commands
    that are not on the pse8 menus that do work such as a layer mask or trim.
    It would be good idea to test your actions in pse8, before installing a whole bunch and
    finding that half of them don't work.
    You could make test action for this purpose. In ps7, record an action
    such as Image>Trim.
    Name this action set Test (you can name the actual actions anything you want)
    and put it in your pse8 photo creations>photo effects folder.
    Then delete (move to your desktop) the MediaDatabase.db3 and start pse7
    (this will take a while to rebuild the effects panel).
    The Test action should be visable in the effects panel after selecting
    photo effects and show all. It wiil just be a black thumbnail named Test.
    From now on when you want to test an action, just replace the Test action
    with another action named Test, but with the action steps your testing
    and no need to delete any files (database).
    By testing your actions in this way, you avoid the hassle of making a
    xml file and a png thumbnail for an action that may not work.
    When installing actions that have been tested, you also need a xml file
    and a png thumbnail file in addition to the action. (look at xml and png
    files already in the photo effects folder for examples).
    You don't have worry about the jpeg files, as elements generates these itself.
    It's a good idea to delete (move to desktop) the the MediaDatabase.db3
    and the ThumbDatabase.db3 anytime you install actions other than the Test action.
    After you start pse8 and everything works, you can delete those files from your desktop.
    There is also an action player in pse8 under guided edit>automated actions.
    As tempting as it may be to test actions with the actions player, i would avoid that.
    One very good reason is that some of commands that are in pse8 don't work with
    the actions player, for example, any of the transform commands.
    In addition to texaschicksblog mentioned above, you may also want to read this pdf:
    http://www.camner.net/files/actions_in_PSE_8_for_mac.pdf
    Hope some of this helps.
    MTSTUNER

  • How to use "Insert action"

    Hi, experts:
      I am facing one problem.
      I try to use system action "insert action" to insert a new row into table view from a form view,
      I have assign "To" to the target table in the Insert action properties.
      When test program, table view did add a new row after click insert button in the form view, but all cell value are blank.
      Any hints would be very appreciate.
      Thanks.
      Best regards,
      Nick.

    Hi Nick,
    I think you are trying to use the fields on the From View to insert the rows with those values in the table View using the 'INSERT' action. You have also configured the 'TO' field of the 'INSERT' action to point to your Target Table View.
    By default the INSERT Action will insert a blank row. In order to populate the values in the table, do the following:
    1.Right Click your Target Table View.
    2. Select 'Define Data'
    3. For each field in the table set the default value to the corresponding field from the source 'Form view'
                 For doing this Double Click the 'fx' button in the Default Value column
                 Open 'Data Fields'
                 Open Your Source Form view
                 Double Click the required field
                 Clcik Ok
    3. Save, Compile and Deploy the Application
    Regards,
    Ajay

Maybe you are looking for

  • What is the content of oracle  success kit?

    Please I need to know all the thIngs that are contained in the oracle success kit. My OCA certificate arrived my post office box in nigeria today. When I went to pick it up I discovered that it had been opened by mail agents. In order to be sure noth

  • [SOLVED] System froze and won't boot.

    When I pluged in my power adapter on my laptop my entire system froze and forced me to cut the power. Now when I try to boot it I get several errors about mounting and udev and more which I can't catch in the speed. Then it enters a long loop of prin

  • Strange graphical glitch in kde4 [SOLVED]

    hi... as the topic says i came across this strange looking issue in kde: http://carnager.dyndns.org/~carnager/glitch.png this is without 3d acceleration. Also affected are text input fields, where sometimes the written text is messed up. Last edited

  • Migration to mac, or other pc's with windows 7 or out of vista

    what are the proceedures, limits or hazards to changing platform or machines? DRGM

  • How is lead time calculated for QM notifications

    Can somebody please tell me what fields are used to calculate lead time?  It is field SUMDLZT in MCQMEL?  Is there documentation on how this is calcuated?