Change item value when a specific item has changed... how can i do that?

Hi guys, i need to ask something...
Is it possible to have a process or a computation, that gives value to an item, only when one specific item has changed.
I have other items on my page too, but this two are related, and i need to give a specific value to the first one, only when the value of the second has changed...
Help please
tsveti:)

Hey Farhan, i guess i need some help on that easy javascript...
i havent done much thing with it so i have almost none experience with js....
So in 'HTML Form Element Attributes' for the second item I m trying this :
onchange="javascript:{document.getElementById('P1_SUBPROJECT').value = '-1';}"
but when i change the value of this second item, the first one (P1_SUBPROJECT) dont get -1
what am i doing wrong?

Similar Messages

  • In my library, under the Artist column only...items are not listed in alpha order.  How can I get that to happen?

    In my library, under the Artist column only...items are not listed in alpha order.  How can I get that to happen?

    Same deal as your other thread but with Artist/Sort Artist:
    https://discussions.apple.com/message/25561674#25561674
    For more info. on how iTunes organizes things see Grouping tracks into albums.
    tt2

  • I am selling my Mac Mini. I recently purchased OS X Lion. When I restore to factory settings, how can I ensure that the operating system will still be Lion, and not the original operating system, which I believe was Snow Leopard?

    I am selling my Mac Mini. I recently purchased OS X Lion. When I restore to factory settings, how can I ensure that the operating system will still be Lion, and not the original operating system, which I believe was Snow Leopard?

    If you bought Lion from the App Store, you can't legally or practically transfer it, because it's tied to your Apple ID. Reinstall the original software from the discs that came with the machine.

  • HT1349 I need to deactivate a computer that has died. how can I do that?

    How do I deactivate a computer thats has died?

    JonesHouse2 wrote:
    How do I deactivate a computer thats has died?
    Do you mean Deauthorize... If so... read on...
    If you no longer have the computer(s) you want to deauthorise,
    Log in to iTunes,  go to "view your account info" on the itunes store,  deauthorise all five, (Please Note: this can only be done Once every 12 months)  and then re-authorize your current Computer(s) one at a time.
    Authorise / Deauthorise About
    http://support.apple.com/kb/HT1420

  • I am sharing a account with my mother. I would like to change my itune account to a separate account. How can I do that without affecting her itune account?

    I share a itune account with my mother.  I would like to set up my own itune account keeping all my info and library from my itune account.  How do I go about setting up my own account without affecting her account and her itunes?  It seems if she gets a new app it appears on my phone and visa versa.  After I change my account will there be a problem syncing it with my phone and ipad?

    Welcome to the Apple community.
    The simple answer is yes you can. On a single user computer, the user can have secondary iCloud accounts, which they can add through the system preferences > mail, contacts and calendars. The only drawback here is that only the primary iCloud account can use photo stream. This can be worked around by having a second user account on the Mac. Each user account could then have a different primary iCloud account, one for you and one for him, your account could then receive your photo stream pictures.
    Are you also aware that you can have iCloud on your PC and download your photos stream pictures to it.

  • My iPhone 5 camera gives a blurred image when taking photos with the device, how can i fix that

    i have had my iPhone 5 for almost a year now and have been suffering from this problem for quiet a while now, when taking pictures with my iPhone 5 the result is a blurred image, i dont know why the focus of the image is so bad !

    MAke sure teh problem is not do to camera shake by holding it firmly on a solid surface and taking a picture of something in the 10-20 foot range.  If that rules out shake, and the image is blurred, take the iPhone to an Apple store genius bar and have it examined.  Backup all of your content in iCloud in case the verdict is a replaement iPhone, they can resore your content from an iCloud backup.

  • My firefox blocks when I start a video. How can I fix that?

    When I go to youtube or any other website to visualize videos my firefox blocks, I don't know why is this happenig. Please help, I nedd to watch videos again.

    Please try this article: [[Firefox-hangs]]

  • Since my last update the rendering of the preview pics changed badly - how can i solve that?

    PS CC said there was an update, I should have ignored it. I cant open 16 bit as smart objects from camera raw, because ps will crash then a few minutes later. OK, I dont open smart objects anymore. But also the preview of the pics look weird, too contrasty and with moirée. Only if i am close to 50 or 100% view it turs ok, in 8 to 12 % which is the normal working view to see the full picture it is useless. The pic shows what i mean. It shows the same pic, left on my new, fast computer and on the right on my old computer. On the old it renders nicely, on the new computer there is moirée and pixels in high contrast. I compared all settings from both, i updated the videocard drivers, I uninstalled PS CC and reinstalled it, but no change... The pic is fine when saved but it is hard to edit it when it looks so weird. How can i solve that?

    Strange, today it was OK, had problems again with the cloud, impossible to log on, everytime i log on it says i am logged off and should log in. Only deleting OOBE folder solves it for a while and PS CC seems to work. But on next start the cloud is off again. That cloud system sucks, would it be better to run a crack to avoid that problem?

  • When I open an email, instead of the site opening I get a long web string that I need to click. Is used to open automatically when I opened the email. How can I go back to that?

    When a message comes in from a site such as Amazon or Shutterfly the site itself does not open when the email is opened. I need to click on a long web string to open the message. It all used to appear when the email was opened. How can I make that happen again? It seems an unnecessary step otherwise.

    I don't appear to have a toolbar either.

  • How to insert data into a table only when data has changed its value (when compared to the previous inserted value)

    I wish to insert data into a table only when the value of the inserted data has changed. Thus, in a time series, if the value of the data at time, t-1, is 206 then if the data to be inserted at time t is 206, then it is skipped (not entered).
    If the value of the data at time t+1 is 206, it is skipped also; until the value changes, so if the value at t+1 was 205, then that would be inserted, and if at time t+2 the data is 206, it would be inserted too.
    What is the best way to do it without increasing overheads?

    This view works:
    SELECT
    i.IDNO,i.[Date],i.[Level]
    FROM
    mytable i
    INNER
    JOIN mytable
    d
    ON
    d.IDNO
    = i.IDNO-1
    WHERE
    i.[Level]
    <> d.[Level]
    on this mytable below.  A trigger could be quite useful here although I am cautious using them. However I wish to avoid the overhead by not having a temp table (which could be sizable).  mytable below
    should give 3 lines. The IDNO is an identity column.
    IDNO
    Item
    Date
    Level
    1
    X24
    12/23/13 10:41
    22996
    2
    X24
    12/23/13 10:41
    22996
    3
    X24
    12/23/13 9:21
    23256
    4
    X24
    12/23/13 9:21
    23256
    5
    X24
    12/23/13 9:22
    23256
    6
    X24
    12/23/13 9:22
    23256
    7
    X24
    12/23/13 9:22
    22916

  • Problem setting a hidden item value when button clicked with dynamic action or pl/sql process

    Apex 4.1
    Oracle 11g
    I have a page that consists of a main region and several sub regions.  I have a pl/sql process in After Header SET_DISPLAY(:P400_DISPLAY :='MAIN';)
    Three subregions have a contional display where P400_DISPLAY = STORE.  This works in hiding the sub regions.
    Now I want to change the P400_DISPLAY value to STORE to show the subregions when I hit a button.
    I tried creating a dynamic action for on click of the add button but get the following error:
    The selected button uses a 'Button Template' that does not contain the #BUTTON_ID# substitution string
    I went to the templates and found:
    Substitution Strings
    Substitution strings are used within sub templates to reference component values. This report details substitution string usage for this template.
    Substitution String
    Referenced
    From
    Description
    #LINK#
    Yes
    Template
    To be used in an "href" attribute
    #JAVASCRIPT#
    No
    To be used in an "onclick" attribute
    #LABEL#
    Yes
    Template
    Button Label
    #BUTTON_ATTRIBUTES#
    No
    Button Attributes
    #BUTTON_ID#
    No
    Generated button ID will be either the button's Static ID if defined, or if not will be an internally generated ID in the format 'B' || [Internal Button ID]
    I then tried creating a page process, pl/sql, :P400_DISPLAY :='STORE'; when the appropriate button is pressed.  The button action is submit page. However, it does not change the P400_DISPLAY value and the subregions stay hidden.
    Suggestions please on how to fix the template or change the P400_DISPLAY value?

    The root issue is that, although you change the value of your page item, it isn't visible to other areas of the page until it is in the session. So, any other action based on the value of your page item; the visibility of a control, a report based on the item's value, etc. will all be unaffected by changing the value of the page item until it has been changed in the session. Even after this the items are stored in the session, you must thereafter do something to cause the value to be reevaluated. To see the effect of this, observe that your page loads and evaluates the value of your page item, it sees that is "MAIN" and hides the regions. However, it doesn't reevaluate them after this.
    So; your choices to get this value set in the session are to either Submit the page, or use JavaScript to set the value in the session. If you use the latter of these, you'll have to do some further work to cause the visibility tests to be re-run, So, let's stick with with the submit method.
    What you've done above sounds correct for this but, there are a lot of decisions you could have made that might have caused things not to happen in the correct sequence.
    Firstly, let's confirm that what I describe above is your problem. From the development environment, load the page, click the button to change the value and submit. Now, click the link labelled Session. Is it still set to MAIN? If so; this is your issue.
    Let's start with the your After Header computation. Did you set it to *only* run if the current value of your page item is NULL??? If not, that's your problem.
    Load Page -> Item set to 'Main' by Computation -> Click Button -> Item set to STORE -> Submit -> Load Page -> Item set to 'Main' by Computation
    See the problem?
    Assuming this isn't the issue, you created a Branch to the same page, right? What is your process point for the Branch? Is it *After* Validation, Computation etc? Because if not, you aren't changing the value before the submit happens.
    I bet it is the first issue but, take a look at these.
    Cheers,
    -Joe

  • I am using Chrome as a browser. When I shop, for example, on Amazon, items I'm looking for then appear in ads on other web sites. How can I stop that?

    I am using Chrome as a browser. When I shop on Amazon, for example, items that I'm shopping for then appear in ads on other sites that I am browsing later. How can I stop that from happening?

    You probably picked up some adware from a "shady" download site. Please see this:
    Adware Removal Guide
    If that does not help you find the adware, please download and install this free utility:
    http://www.etresoft.com/etrecheck
    It is secure and written by one of our most valued members to allow users to show details of their computer's configuration in Apple Support Communities without revealing any sensitive personal data.
    Run the program and click the "Copy report to clipboard" button when it displays the results. Then return here and paste the report into a response to your initial post. It can often show if any harmful files/programs are dragging down your performance or casuign browser issues.

  • Header text is not changing when ship to party has changed

    Hello Team,
    I am facing one issue when ship to party has changed in sales order the header text is not re determining automatically,
    I have read some posts and found that using standard its not possible we need to write enhancement for that.
    I have written below code to change the header text but facing some issues, can you please help me on to resolve this issues.
    I am calling 'RV_TEXT_COPY' FM inside the include FV45PFAP_VBAP_FUELLEN_TEXTE ,
    then its saving header text correctly, but this include is calling whenever I click on Header Text tab,
    if suppose if I am changing ship to party and I am not clicking on Header Text tab then this FM will not call this is an issue
    and one more issue is even in screen data is changing after calling RV_TEXT_COPY FM
    but STXH table is not updating, its updating the first value when we created the order.
    Can any one tell me how to solve this issue, Thanks in advance!

    Hi Mac,
    I think the following user exits can help you. In the Include MV45AFZZ use the below exit points,
    1) USEREXIT_MOVE_FIELD_TO_VBKD
    2) USEREXIT_SAVE_DOCUMENT_PREPARE
    try to write your code logic here.
    Regards,
    Satish

  • How do I change icloud email when my apple ID has been updated to new email? Because of the update on apple ID, when I try to delete icloud account I have to put in the password, and it says username or password is invalid (because no longer apple ID).

    How do I change icloud email when my apple ID has been updated to new email? When I try to delete icloud account (in settings-icloud-delete account) I have to put in the password for the apple ID of my old email address, which is no longer my apple ID, and it says username or password is invalid (I'm guessing because that is no longer my apple ID).

    You will wait for the rest of your life. You need to fix it; no one else will. To turn off "Find my iPhone" and its associated Activation Lock you need the Apple ID and password that were used to turn it on. If you know the Apple ID you can contact Apple Account Security and have them reset the password (after you prove you are the rightful owner of that Apple ID). see: http://support.apple.com/kb/HT5699.
    If you don't know the Apple ID the phone is permanently unusable.

  • When I move a RAW file from IPhoto to my desktop or Photoshop it changes to a jpeg and reduces in size. How can I get the Raw file across?

    When I move a RAW file from IPhoto on my macbook pro to desktop or Photoshop it changes to a jpeg and reduces in size. How can I get the Raw file to move across?

    I create separate folders based on the year and then the actual date of when I take images. You can make those folders anywhere on any hard drive that is connected to your Mac whether internal or external. I also use the Photoshop Photo Downloader that is included with Photoshop/Bridge and it will create the date folder so all I do is create a Year folder.
    Open Bridge or click on the Bridge icon in PS and in the File menu item in Bridge select "Get photos from Camera". It can be a camera connected to your Mac or a memory card from a camera. A window will open and you then select the camera or memory card. Set the location they will be downloaded to, just the folder and you can Browse to a folder that you created, then in the "Create  Subfolders drop down select what date stamp you want to use or or custom name or not to create subfolders at all.
    I've never cared for iPhoto one bit. I tried it but found it way to restrictive. It likes to have full control over how you interact with your images.

Maybe you are looking for