How to fire valueChangeEvent when tabs out for inputComboboxListOfValues

Hi,
Env: JDev 11.1.1.4 and ADF.
In my page it has one inputComboboxListOfValues field, it can be entered into a new value or select one from LOV, now I met one issue that when enter into a new value and tabs out, it will open search popup window, but if I close popup window(ok or close button), it will return and lose focus and it can't fire valueChangeEvent, but in valueChangeListener() I need to enable/disable other fields. (autoSubmit="true")
<af:inputComboboxListOfValues id="ToPlanId"
        popupTitle="Search and Select: #{bindings.CopyPlanName.hints.label}"
        value="#{bindings.CopyPlanName.inputValue}"
        label="#{bundle.PLAN_NAME}"
        model="#{bindings.CopyPlanName.listOfValuesModel}"
        required="false" showRequired="true"
        columns="#{bindings.CopyPlanName.hints.displayWidth}"
        shortDesc="#{bindings.CopyPlanName.hints.tooltip}"
        autoSubmit="true" immediate="false" maximumLength="10"
        binding="#{backingBeanScope.CopyPlanBean.destPlanName}"
        valueChangeListener="#{backingBeanScope.CopyPlanBean.destPlanNameChanged}"
        visible="false" partialTriggers="FromPlanType FromPlanName">
</af:inputComboboxListOfValues>I searched all forums and docs and can't find any guide for that, so my question is:
1) if ADF supports that use "Tab" key can fire valueChangeEvent? if so, what's wrong with my code?
2) if not support, how can I fix this issue?
thanks,
zeroxin

Hi,
refer this code,
Page code
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
          xmlns:f="http://java.sun.com/jsf/core"
          xmlns:h="http://java.sun.com/jsf/html"
          xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
  <jsp:directive.page contentType="text/html;charset=UTF-8"/>
  <f:view>
    <af:document id="d1">
      <af:messages id="m1"/>
      <af:resource type="javascript">
        function onLovValueTabbedOut(evt) {
            var it4 = evt.getSource().findComponent('it4');
            AdfCustomEvent.queue(it4, "onLovValueTabbedOut",
                'key1' : 'val1',
                'key2' : 'val2'
true);
      </af:resource>
      <af:form id="f1">
        <af:panelFormLayout id="pfl1">
          <af:inputComboboxListOfValues id="type1Id"
                                        popupTitle="Search and Select: #{bindings.Type1.hints.label}"
                                        value="#{bindings.Type1.inputValue}"
                                        label="#{bindings.Type1.hints.label}"
                                        model="#{bindings.Type1.listOfValuesModel}"
                                        required="#{bindings.Type1.hints.mandatory}"
                                        columns="#{bindings.Type1.hints.displayWidth}"
                                        shortDesc="#{bindings.Type1.hints.tooltip}">
            <f:validator binding="#{bindings.Type1.validator}"/>
            <af:clientListener method="onLovValueTabbedOut" type="blur"/>
          </af:inputComboboxListOfValues>
          <af:inputText value="#{bindings.RowID.inputValue}"
                        label="#{bindings.RowID.hints.label}"
                        required="#{bindings.RowID.hints.mandatory}"
                        columns="#{bindings.RowID.hints.displayWidth}"
                        clientComponent="true"
                        maximumLength="#{bindings.RowID.hints.precision}"
                        shortDesc="#{bindings.RowID.hints.tooltip}" id="it4">
            <f:validator binding="#{bindings.RowID.validator}"/>
            <af:serverListener type="onLovValueTabbedOut"
                               method="#{bean1.onTabbedOut}"/>
          </af:inputText>
          <f:facet name="footer">
            <af:panelGroupLayout layout="horizontal" id="pgl1">
              <af:commandButton actionListener="#{bindings.First.execute}"
                                text="First"
                                disabled="#{!bindings.First.enabled}"
                                partialSubmit="true" id="cb2"/>
              <af:commandButton actionListener="#{bindings.Previous.execute}"
                                text="Previous"
                                disabled="#{!bindings.Previous.enabled}"
                                partialSubmit="true" id="cb3"/>
              <af:commandButton actionListener="#{bindings.Next.execute}"
                                text="Next" disabled="#{!bindings.Next.enabled}"
                                partialSubmit="true" id="cb4"/>
              <af:commandButton actionListener="#{bindings.Last.execute}"
                                text="Last" disabled="#{!bindings.Last.enabled}"
                                partialSubmit="true" id="cb1"/>
              <af:commandButton actionListener="#{bindings.Commit.execute}"
                                text="Commit" partialSubmit="true"
                                disabled="#{!bindings.Commit.enabled}"
                                id="cb5"/>
              <af:commandButton actionListener="#{bindings.Rollback.execute}"
                                text="Rollback" partialSubmit="true"
                                disabled="#{!bindings.Rollback.enabled}"
                                immediate="true" id="cb6">
                <af:resetActionListener/>
              </af:commandButton>
            </af:panelGroupLayout>
          </f:facet>
        </af:panelFormLayout>
      </af:form>
    </af:document>
  </f:view>
</jsp:root>Bean code
package view;
import oracle.adf.view.rich.render.ClientEvent;
public class Bean1 {
    public Bean1() {
        super();
    public void onTabbedOut(ClientEvent clientEvent) {
        System.out.println("clientEvent : " + clientEvent.getParameters());
}doc :
http://docs.oracle.com/cd/E21043_01/apirefs.1111/e12419/tagdoc/af_serverListener.html
Cheers!!!
Regards,

Similar Messages

  • How do i crop "out" a piece of image=ex: how it will look when its cut for a window. Crop a white space in image?

    How do i crop "out" a piece of image=ex: how it will look when its cut for a window. Crop a white space in image?

    I think this will help if you are using version 11 or 12.
    Make a selection with a selection tool of the area you want to remove.
    Example: rectangular marquee tool - make a rectangle.
    Use Select>Refine Edge:
    Use the View section of this dialog box to see a few views.
    If you need to refine the edge of the selection (smooth, feather, shift, etc.) you can do that in this dialog box.
    You may want to check the box about remembering your settings in case you need to come back to them.
    In the Output section, you can pick New Layer with Layer Mask and click OK.
    You should see the hole in your image.
    Kathy Keith
    @kathleenmadeline on Instagram
    (I teach Photoshop Elements classes)

  • When checking out for an online purchase, an " invalid email " message appears. It is a gmail acct.

    When checking out for an online purchase from varied vendors, an "email not valid" message appears preventing completion of order. How to fix?

    Are you typing the email address each time or using auto fill? If you are using auto fill, have you tried deleting that is in there and typing the email address again?

  • Hi, We are a physiotherapy practice trying to use i-cal as a clinic diary systaem for 15 therapists. We need to block out availability of therapists but cant do this? How can you block someones diary out for specific times on i-cal? Any help please..

    Hi, We are a physiotherapy practice trying to use i-cal as a clinic diary system for 15 therapists. We need to block out availability of therapists but cant do this? How can you block someones diary out for specific times on i-cal? Any help please..

    iCal is designed for personal use, and isn't really meant to handle this sort of situation.
    The best suggestion I can offer, though it's a trifle untidy, is: create a calendar for each therapist, giving each a different colour. Enter the availability for each therapist - if it's on a weekly basis you can make them repeating events. Then add the individual appointments, which will show alongside in the daily view. In this example, the 'purple' therapist is available from 1030 to 1700 and has appointments at 1200 and 1500.
    If you have more than a few therapists available at any one time it's liable to look a bit messy, but it's the best I can think of at the moment.

  • When tab out of an autoSubmit field I lose focus.

    Hello all!
    I'm using jDev 11.1.2.1.0
    I'm facing the following situation. In the employees VO there is a transient attribute which is actually the salary * commissionPct.
    In the jspx, in order to make things interactive, salary and commisionPct have autoSubmit=true. When I change either of the fields the transient column refreshes accordingly. Up to here everything is fine.
    The problem is that when I make a change to either of these fields and tab out the focus is lost. This is very annoying. It happens only in salary and commissionPct fields.
    Is there any way to avoid this??
    Thanks a lot!
    -apostolos

    Sudipto thanks for the link. Very useful.
    I actually use PPR in the employee Iterator, and this is because there is a master-detail functionality in the page. Suppose I have a case similar to department-employees case.
    If I remove the PPR then the master and detail are not synchronized.
    At the bottom you see the sums filed which is actually the product of salary and commissionPct.
    <af:table value="#{bindings.EmployeesVO1.collectionModel}"
                              var="row" rows="#{bindings.EmployeesVO1.rangeSize}"
                              emptyText="#{bindings.EmployeesVO1.viewable ? 'No data to display.' : 'Access Denied.'}"
                              fetchSize="#{bindings.EmployeesVO1.rangeSize}"
                              rowBandingInterval="0"
                              selectedRowKeys="#{bindings.EmployeesVO1.collectionModel.selectedRow}"
                              selectionListener="#{bindings.EmployeesVO1.collectionModel.makeCurrent}"
                              rowSelection="single" id="t1">
                        <af:column sortProperty="#{bindings.EmployeesVO1.hints.EmployeeId.name}"
                                   sortable="true"
                                   headerText="#{bindings.EmployeesVO1.hints.EmployeeId.label}"
                                   id="c1">
                            <af:inputText value="#{row.bindings.EmployeeId.inputValue}"
                                          label="#{bindings.EmployeesVO1.hints.EmployeeId.label}"
                                          required="#{bindings.EmployeesVO1.hints.EmployeeId.mandatory}"
                                          columns="#{bindings.EmployeesVO1.hints.EmployeeId.displayWidth}"
                                          maximumLength="#{bindings.EmployeesVO1.hints.EmployeeId.precision}"
                                          shortDesc="#{bindings.EmployeesVO1.hints.EmployeeId.tooltip}"
                                          id="it1">
                                <f:validator binding="#{row.bindings.EmployeeId.validator}"/>
                                <af:convertNumber groupingUsed="false"
                                                  pattern="#{bindings.EmployeesVO1.hints.EmployeeId.format}"/>
                            </af:inputText>
                        </af:column>
                        <af:column sortProperty="#{bindings.EmployeesVO1.hints.FirstName.name}"
                                   sortable="true"
                                   headerText="#{bindings.EmployeesVO1.hints.FirstName.label}"
                                   id="c2">
                            <af:inputText value="#{row.bindings.FirstName.inputValue}"
                                          label="#{bindings.EmployeesVO1.hints.FirstName.label}"
                                          required="#{bindings.EmployeesVO1.hints.FirstName.mandatory}"
                                          columns="#{bindings.EmployeesVO1.hints.FirstName.displayWidth}"
                                          maximumLength="#{bindings.EmployeesVO1.hints.FirstName.precision}"
                                          shortDesc="#{bindings.EmployeesVO1.hints.FirstName.tooltip}"
                                          id="it2">
                                <f:validator binding="#{row.bindings.FirstName.validator}"/>
                            </af:inputText>
                        </af:column>
                        <af:column sortProperty="#{bindings.EmployeesVO1.hints.LastName.name}"
                                   sortable="true"
                                   headerText="#{bindings.EmployeesVO1.hints.LastName.label}"
                                   id="c3">
                            <af:inputText value="#{row.bindings.LastName.inputValue}"
                                          label="#{bindings.EmployeesVO1.hints.LastName.label}"
                                          required="#{bindings.EmployeesVO1.hints.LastName.mandatory}"
                                          columns="#{bindings.EmployeesVO1.hints.LastName.displayWidth}"
                                          maximumLength="#{bindings.EmployeesVO1.hints.LastName.precision}"
                                          shortDesc="#{bindings.EmployeesVO1.hints.LastName.tooltip}"
                                          id="it3">
                                <f:validator binding="#{row.bindings.LastName.validator}"/>
                            </af:inputText>
                        </af:column>
                        <af:column sortProperty="#{bindings.EmployeesVO1.hints.Salary.name}"
                                   sortable="true"
                                   headerText="#{bindings.EmployeesVO1.hints.Salary.label}"
                                   id="sal">
                            *<af:inputText value="#{row.bindings.Salary.inputValue}"*
                                          label="#{bindings.EmployeesVO1.hints.Salary.label}"
                                          required="#{bindings.EmployeesVO1.hints.Salary.mandatory}"
                                          columns="#{bindings.EmployeesVO1.hints.Salary.displayWidth}"
                                          maximumLength="#{bindings.EmployeesVO1.hints.Salary.precision}"
                                          shortDesc="#{bindings.EmployeesVO1.hints.Salary.tooltip}"
                                          id="it6" autoSubmit="true">
                                <f:validator binding="#{row.bindings.Salary.validator}"/>
                            </af:inputText>
                        </af:column>
                        <af:column sortProperty="#{bindings.EmployeesVO1.hints.CommissionPct.name}"
                                   sortable="true"
                                   headerText="#{bindings.EmployeesVO1.hints.CommissionPct.label}"
                                   id="comm">
                            *<af:inputText value="#{row.bindings.CommissionPct.inputValue}"*
                                          label="#{bindings.EmployeesVO1.hints.CommissionPct.label}"
                                          required="#{bindings.EmployeesVO1.hints.CommissionPct.mandatory}"
                                          columns="#{bindings.EmployeesVO1.hints.CommissionPct.displayWidth}"
                                          maximumLength="#{bindings.EmployeesVO1.hints.CommissionPct.precision}"
                                          shortDesc="#{bindings.EmployeesVO1.hints.CommissionPct.tooltip}"
                                          id="it7" autoSubmit="true">
                                <f:validator binding="#{row.bindings.CommissionPct.validator}"/>
                            </af:inputText>
                        </af:column>
                        <af:column sortProperty="#{bindings.EmployeesVO1.hints.Sums.name}"
                                   sortable="true"
                                   headerText="#{bindings.EmployeesVO1.hints.Sums.label}"
                                   id="c9">
                            *<af:inputText value="#{row.bindings.Sums.inputValue}"*
                                          *label="#{bindings.EmployeesVO1.hints.Sums.label}"*
                                          *required="#{bindings.EmployeesVO1.hints.Sums.mandatory}"*
                                          *columns="#{bindings.EmployeesVO1.hints.Sums.displayWidth}"*
                                          *maximumLength="#{bindings.EmployeesVO1.hints.Sums.precision}"*
                                          *shortDesc="#{bindings.EmployeesVO1.hints.Sums.tooltip}"*
                                          *id="it8">*
                                *<f:validator binding="#{row.bindings.Sums.validator}"/>*
                            *</af:inputText>*
                        </af:column>
                    </af:table>Edited by: apostolosk on May 2, 2012 3:19 PM

  • LOV not validating from the list when tabbed out

    Hi,
    I have an item attached to an LOV generated dynamically based on another LOV. When I change the value in the parent LOV, and just click on the child item(which still has old value) and tab out, it does not validate from the list which has new values. The old value in the field is actually wrong one. However, it shows new values when I click on list of values for the child item.
    I am also setting the property VALIDATE_FROM_LIST to PROPERTY_TRUE. The code to set_lov_property to the dynamic query is generic and is used by both key-listval and when-new-item-instance triggers. Except in key-listval I added list_values.
    I am using forms 6i version.
    Can any one tell me where I am doing wrong?
    Thanks,

    Neeraja,
    Its because the item is not validating again, as there is no change in its contents. So you have to tell oracle to validate that item. For that in the WHEN_VALIDATE_ITEM trigger of the parent item, write,
    SET_ITEM_PROPERTY('<block_name>.<child_item_name>', ITEM_IS_VALID, PROPERTY_FALSE);So when you tab out from the child item, the oracle will validate that item even if there is no change in the data.
    Regards,
    Manu.
    If my response or the response of another was helpful or Correct, please mark it accordingly

  • How to configure traps when using snmpv3 for Airwave and controller communication

    Requirement:
    Airwave monitoring or managing controllers, using SNMPv3 for communication.
    Solution:
    Usage of SNMP v3 for communication over SNMP V2c is increasing rapidly for its enhanced security. Like wise, SNMP v3 informs are also more secured compare to SNMP v2c traps.
    SNMP v3 informs work differently, when compared to SNMP v2c traps.  As, informs would need a received receipt from the trap receiver. Therefore it requires more configuration from Airwave side as well.
    Configuration:
    We need to configure the SNMP v3 inform user on Airwave, under device setup --> communication as shown below:
    We need to use the same user name to configure on the controller as well, as shown below:
    Controller GUI > Configuration > under management > SNMP > Trap recievers:
    Verification
    After the configuration, we could see the traps(Informs) showing on the Airwave GUI, System --> Syslogs & Traps, as shown below:
    We could also see in the packet capture taken from Airwave, that the controller is sending the Traps and Airwave is Acknowledging them as shown below:
    In the above example, .116 is the Airwave IP and .231 is the controller IP.

    My first question is how to create Sync-Async bridge in XI without using BPM.
    Just make a search on SDN, there is blog which mentiones how to do Sync_Async bridge without BPM (for JMS)
    "how to route this Interface mapping in Integration directory as in this case there is no backend call....its just the Java
    mapping inside an Interface mapping"
    Include the Interface mapping in the appropriate Interface Determination in ID for a particular set of source and target.
    and third I m trying to call an IDOC which is populated with the response of the Java mapping....but how to route it in
    Integration Directory ??
    same as mentioned for Q2....in Interface Determination....if it is a Sync call then the Request & Response Mapping will be in same Interface Mapping and then in same Interface Determination......it is the normal way.....I hope that i have not missed/ overlooked something from your queries!
    Regards,
    Abhishek.

  • How to download apps when locked out mad already.

    Why cant I add app when locked out after I reset paw nod sec ques

    surfguinea wrote:
    Oh wow, thanks! .
    I didn't know that the "download" just-do-it-button was actually the greyed out oval that reads "free". For some reason, I thought Apple would choose a more intuitive identifier, like "click here" or "download" or "install" or else a blue, green, or raised button! Thanks for the assistance and clarification!
    I disagree though that core web applications like flash or gmail sucking is entirely other people than Apple's fault.
    Don't start in on Flash pleeeeeease!! There are already a gazillion threads on it here.
    I don't get the problem with Gmail - are you using it via Safari or via Mail?

  • [solved] Warcraft 3 freezes when tabbing out and in again

    Hello!
    I'm using dwm and running Warcraft 3 Frozen Throne via Wine is no problem. But when I change the view from i.e. 1 (where Warcraft is running) to 2 and back to 1, the title says "Warcraft III" but the window does not load. When I exit the window, all I got in my terminal is:
    $domac.vex tft
    err:ole:CoCreateInstance apartment not initialised
    fixme:advapi:SetSecurityInfo stub
    fixme:win:EnumDisplayDevicesW ((null),0,0x33f2e8,0x00000000), stub!
    fixme:win:EnumDisplayDevicesW ((null),0,0x33f588,0x00000000), stub!
    fixme:win:EnumDisplayDevicesW ((null),0,0x33f5b8,0x00000000), stub!
    $domac.vex fixme:win:EnumDisplayDevicesW ((null),0,0x33e7e8,0x00000000), stub!
    fixme:msvcr90:__clean_type_info_names_internal (0x150591a0) stub
    alias tft='optirun wine ~/.wine/drive_c/Program\ Files\ \(x86\)/Warcraft\ III/Frozen\ Throne.exe'
    I don't think that is helpful… anyone knows how to fix that problem? Or any suggestions?
    I have no clue…
    (appended HKEY in wine regedit, so that the game runs always with -opengl)
    One more thing… when I run the game with the -window option, I can tab in and out as often as I want but I got huge problems with mouse scrolling ingame (top, down scrolling).
    Thanks for incoming help! :-)
    Cheers
    EDIT: Fixed via winecfg, emulating virtual screen. Warcraft III needs that focus! :D Whatever… it works.
    Last edited by domac (2012-10-07 12:28:42)

    moljac024 wrote:If you're a hardcore gamer then I'll just advise you to keep Windows installed for your gaming needs. There's nothing wrong with dual-booting for that
    I have (nLited) WinXP for games. But WC3 works fine with Wine, that's why I want to play it with Linux. It's faster just click a shortcut without rebooting.
    Rokixz wrote:The best solution for Hardgamers is to buy a xbox360
    I don't prefer consoles. And FPS games (which I play most) are crap on consoles.
    Dheart wrote:Now that I think of...
    Let me guess: You are using hardware acceleration set to "Emulation" and Driver emulation with alsa.
    For some reason WarCraft III doesn't like those (Hardware acceleration in particular...) Set Hardware acceleration to Basic or Full and the game will launch...
    It's set to "Full". And as I said, game launches but freezes after a few secs. But music continues even if a screen is frozen.
    Last edited by Exitium (2008-09-06 10:49:29)

  • How do I scroll when zoomed out in Keynote?

    I am trying to create an animated presentation in Keynote.  I would like an image to appear from off-screen and move across the screen then off the other side.  However, when I zoom out in Keynote the slide stays in the top left corner and I can't see any scroll bars, no matter how far I zoom out.  So I can't re-position the slide so that it's in the centre of the screen with blank space around it - blank space that I will need to put my image in so that I can animate it.
    I'd be really grateful for help as I've tried searching for the answer and I'm stumped.

    Put the image in the centre of the slide and zoom to 25%. Select the image and go to the Build Inspector panel. Choose Action then Move. There will be red diamond shapes indicating where the movement will start and end. Drag one off the right hand side and the other off the left hand side. While you won't be able to see where the one at the left ends up, you can tell when it is far enough off.
    Be aware that once the point is off screen on the left you can't change it (at least I can't see how to do it) so try to get it in the right position first time. If you need to try again you will have to delete the action and start again.
    Hope that helps!

  • How to handle error when importing taxonomy for product using XML?

    We are on MDM 5.5 and built a repository for SAP R/3 Material Master. It has basic material information and taxonomy information as well. We built an import map based on an XML file, which includes basic info as well as taxonomy (classification) info. The import process runs smoothly. But if the import file includes some materials which characteristic values don't exist in MDM, the import will fail and exception file has a complete different format as our import file also it only display one material. Therefore, we cannot reprocess the exception file for errorred out items. What could we do wrong? By the way, we use "Create Pivot table" option in MDM to create the original import map.

    Hi Micheal,
    I Think your problem is similar to the below one,you can refer the below link for the same.
    Import file using Pivot Tables
    What you need to make sure is that you are using the same structure of the source file for importing as you used while creating the map else it wont work.
    Your schema of the source file as well the schema used when creating the map must match.
    You can refer the below links to know more about Taxonomy data importing:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30aa1447-80a1-2a10-e483-a76087bcb12f
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6090d0bd-1da7-2a10-468f-bdd17badb396
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/8090941f-a5a7-2a10-3ba6-b4af5ec6d97b
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/308c62a2-5faa-2a10-fda6-fa4aa7169734
    Hope It Helped
    Thanks & Regards
    Simona Pinto

  • Lose focus when tabbing out of autoSubmit text box in IE

    Hey,
    Using JDEV 11.1.1.4 I have a problem with tabbing from one textbox to another textbox in IE. Both text boxes have autoSubmit=true and to reproduce the problem it's like so:
    I type a value or edit the existing one into text box 1 and press Tab. The submit is done and focus is given to the second text box but only momentarily before it loses focus. The focus then is given to the window it would appear, because if I press Tab again it begins from the top of the page. This is only happening in IE (v8 is all I have tried so far). This ONLY happens when the value of the second box is null. If it has a value all works fine.
    I tried implementing various solutions including using the ExtendedRenderKitService to write javascript to the client from the bean to set focus on the text box after the partial render. The javascript is called and focus is set but then something else calls blur on it afterwards. I have verified this by putting a blur event listener on it and it gets called after I set focus on it from my own javascript!
    Has anyone experienced something similar? Just to note: It only happens in IE, and it only happens when the second text box is empty.
    Thanks,
    Ross

    Hey John,
    In reply to your message
    1). Tried on 11.1.1.6 to see if the issue is still there?Not really an option to try and upgrade and test if it works there.
    2). Made a simple test case removing as many variables as possible (e.g. do a simple screen with no DB interaction and only two fields) to see if it reproduces or it's something with your screen?Tried this an it works fine which means it is something unique to my code.
    3). Filed an SR at https://support.oracle.com with your test case
    As above it looks like it's not a problem with ADF so I will keep looking at it.

  • How to Fire Trigger, when changes are applied on destination??

    Hi,
    I want to fire the following trigger at destination, when changes are applied from source table (cms.test_2) to destination table(cms.test_2).
    create or replace trigger Ins_and_upd
    after insert or update of send_status on cms.test_2
    declare
    begin
    update cms.test_2
    set RECEIVE_STATUS = 'YES'
    where UPPER(send_status)=upper('YES');
    end;
    Thanks,
    faziarain

    I am using oracle10g stream replication, and database version is "10.2.0.1.0".
    Basically I have 2 machines named:
    --> Site#1_DB ----> Having Table TEST_2 -----> Columns (BID,DBID,Send_Status,Receive_Status,Final_Status).
    --> Center_DB ----> Having Table TEST_2 -----> Columns (BID,DBID,Send_Status,Receive_Status,Final_Status).
    My Senario example is following:
    At Site#1_DB TEST_2 Table contains the following data:
    TEST_2 is updating and set the YES value in "Send_Status" column, and this change will replicated to Center_DB TEST_2 table.
    BID----------DBID----------Send_Status----------Receive_Status----------Final_Status
    1----------2----------YES----------NULL----------NULL----------NULL
    2----------3----------YES----------NULL----------NULL----------NULL
    3----------4----------YES----------NULL----------NULL----------NULL
    4----------5----------YES----------NULL----------NULL----------NULL
    At Center_DB TEST_2 Table contains:
    In My Senario changes are successfully replicated at Center_DB TEST_2 Table and after replication
    Test_2 table is same on both machines.
    But Now I want to write my given trigger at Center_DB and this trigger will be fired when changes are replicated
    from Site#1_DB to Center_DB.
    BID----------DBID----------Send_Status----------Receive_Status----------Final_Status
    1----------2----------YES----------NULL----------NULL----------NULL
    2----------3----------YES----------NULL----------NULL----------NULL
    3----------4----------YES----------NULL----------NULL----------NULL
    4----------5----------YES----------NULL----------NULL----------NULL
    Output After Firing the trigger at Center_DB:
    BID----------DBID----------Send_Status----------Receive_Status----------Final_Status
    1----------2----------YES----------YES----------NULL----------NULL
    2----------3----------YES----------YES----------NULL----------NULL
    3----------4----------YES----------YES----------NULL----------NULL
    4----------5----------YES----------YES----------NULL----------NULL
    Thanks,
    Faziarain.
    Edited by: [email protected] on Mar 30, 2009 10:00 PM
    Edited by: [email protected] on Mar 30, 2009 10:17 PM
    Edited by: [email protected] on Mar 31, 2009 3:48 AM

  • How to store printer when not used for extended period.

    Printer will remain in unheated summer cottage. I plan to remove print head with cartridges for storage in a heated home. Will the cartridges dry out and/or would ink congeal in printhead as one instruction says not to remove cartridges until ready to replace with new. Any suggestions?

    Printer will remain in unheated summer cottage. I plan to remove print head with cartridges for storage in a heated home. Will the cartridges dry out and/or would ink congeal in printhead as one instruction says not to remove cartridges until ready to replace with new. Any suggestions?

  • How to package monitor when sending off for repair

    Dear members of this forum, I have today arranged for my monitor to be sent off to an Acer repair centre in Telford after I found the display had some issues - namely a noticeable white blotch on the screen and dark edges). I have the 21.5" model of this monitor - for some reason Amazon removed my version. Unfortunately I no longer have the boxes that the monitor came in so I wanted to ask you how I should go about packaging the item to ensure it is delivered safely without any damage whatsoever. Could somebody also please confirm whether I need to send off all the cables it came with as well? I had no use for the VGA cable, so I do not know where it is. HDMI cables were not provided. Would it be okay to send off only the 1. Monitor and 2.Power Cable? It would be very helpful if you guys could give me dimensions of the box the monitor came in. Also, any advice as to where I could get the cardboard boxes and bubble wrap too. Thank you for your time, I look forward to your replies.  

    Here's the weblink with information to package the product to ship it in for repairs.http://acer.custhelp.com/app/answers/detail/a_id/32900/kw/repair/related/1You do not need to use the orginal box, you may use a plain box.You do not need send the vidoe cables. You may send the power cord if the monitor has power issues so that it would be replaced if defective.  Click the Kudos to say “Thanks” for helping! select "Accept Solution" if your issue is resovled.

Maybe you are looking for