Problem when trying to refresh oracle screens with latest data

hello experts,
i have one problem,i want to refresh the oracle screen with the latest data from the data
base.
It is a two stage process.At first step one user will select a row from the screen and then he will press a button .
now the second screen will appear and the detail of the employee will be displayed.
First step has been completed and the data is coming in the second form via parameters and i can see the full information of the employee.
Now i want to refresh the oracle form i.e. suppose if my dba has made any changes in the oracle table( EMP table) i want that after pressing the refresh button user can see the
latest data from the database.
in WHEN_BUTTON_PRESSED trigger i have written this codes.
enter_query;
execute_query;
but they are not giving the expected result.
And one more thing please suggest whether in the second form i should use database item
or non database item.
When i am using database item when i am trying to close second from one pop up is appearing
and asking that whether i want to save the changes.
please suggest how can i remove this message from my application.
Regards
Anutosh

Hi,
what data did you transfer via parameters to the second form ?
how did you populate the datablock in the second form ?
Typical solution would be:
(For my example the block is both forms is named EMP, and is based on the table SCOTT.EMP)
In Form 1, transfer the primary key-value of the current record to a global or parameter (will use global in my example):
e.g. you have a WHEN-BUTTON-PRESSED-Trigger with the following code:
<pre>
:GLOBAL.EMPNO:=:EMP.EMPNO;
CALL_FORM('FORM2');
</pre>
In Form 2, you have a WHEN-NEW-FORM-INSTANCE-Trigger with code:
<pre>
DEFAULT_VALUE('GLOBAL.EMPNO', NULL);
IF :GLOBAL.EMPNO IS NOT NULL THEN
GO_BLOCK('EMP');
EXECUTE_QUERY;
:GLOBAL.EMPNO:=NULL;
END IF;
</pre>
On block EMP in Form 2 there is a PRE-QUERY-Trigger with following code:
<pre>
IF :GLOBAL.EMPNO IS NOT NULL THEN
:EMP.EMPNO:=:GLOBAL.EMPNO;
END IF;
</pre>
And at last, in your refresh-button would be the following code:
<pre>
:GLOBAL.EMPNO:=:EMP.EMPNO;
GO_BLOCK('EMP');
EXECUTE_QUERY;
:GLOBAL.EMPNO:=NULL;
</pre>
Hope this helps

Similar Messages

  • Problem when trying to create a template with vdi 3.2.1

    Hi,
    I´m using vdi 3.2.1 in solaris 10 x86. I´m using Virtualbox in the same server as a desktop provider. I created a windows 7 virtual machine without any problem.
    My problem appears when I´m trying to import that VM into a template, I follow "Pools --> then select the pool --> And from the tabs Bar, select TEMPLATE --> Import Template..." Then from the new window, select Hypervisor and select the VM that I want to import it as a template.
    The importing process began and After the 100%, the vdi says "Job Failed" "Could not convert desktop [ide=18] to template".
    The /var/adm/messages has this error:
    vdix86 cacao[5067]: [ID 702911 daemon.crit] com.sun.vda.service.storage.ZfsStorage.cloneVolume : Command "zfs clone -o shareiscsi=off vbox1/98ab69d8-b41e-4574-9acc-87cf12b7047b@version1 vbox1/4c21a5c6-63fe-4f3a-b4f6-09a73c223cd8" failed on host 10.1.2.168!
    Jan 19 18:25:42 vdix86 Error code: 2
    Jan 19 18:25:42 vdix86 Error: invalid option 'o'
    Jan 19 18:25:42 vdix86 usage:
    Jan 19 18:25:42 vdix86 clone [-p] <snapshot> <filesystem|volume>
    Jan 19 18:25:42 vdix86 For the property list, run: zfs set|get
    Jan 19 18:25:42 vdix86 For the delegated permission list, run: zfs allow|unallow
    I read the zfs manual and "-o" is not a valid option for clone but I don´t know why is there.
    what am I doing wrong? any ideas?
    Thanks in advanced.

    Hello
    Are you using a supported version of Oracle?  I hope it's not Oracle 7!
    This is probably an installation issue, where is Data Services installed?  If its Program Files (x86), try re-installing in C:\SAP or similar.
    Your comment <<If I try using ODBC it cannot find the oracle drive in the system list.>>  makes me wonder if the the Oracle client is not installed properly.
    Michael

  • Problem when trying to send a mail with pdf file attached

    When I use this features from Adobe reader, a new mail is opened with pdf file but my Outlook signature is not set automatically. Note that all is right configure in Outlook 2007 for the signature option...
    Do you have a solution for this problem ?

    someone else reported this (unless it was you) You'll have to insert your sig manually.

  • Problem when trying to use Google WebService with abap

    Hello,
    I want to call a Google webservice from abap but I can't create the proxy class.
    The WSDL of this webservice is located at   
    [<a href="http://api.google.com/GoogleSearch.wsdl">http://api.google.com/GoogleSearch.wsdl</a>
    When I try to create the proxy class with transaction SE80, I have the following error message (SPRX046) : <i>Proxy generation terminated: Message must have exactly one part     
    </i>     
    Does anyone have an idea to solve this problem  (We are in ECC 6.0 NW 2004S) ?
    How can we do if <message> has multiple <part> entries ?
    Thanks
    JLG

    hi,
    you can't create a proxy for the google API because Google's webservices are <b>RPC style</b> and the proxy wizard of WAS ABAP on NW2004s supports <b>document style</b> webservices only.
    Search Google for the keywords mentioned and you'll find a lot of discussions and explanations of the difference of these two styles.
    regards,
    anton

  • Problems when trying to move a paragraph with a heading to the next page

    When i try to move a paragraph with a heading (generally style 2) to the next page by pressing the enter key, rather than the whole paragraph moving to the top of the next page it moves to pretty well every where but the top. i have attached a video because im sure what i have said doesn't make much sense.
    http://www.youtube.com/watch?v=MrlnsmLIDGk&feature=youtubegdataplayer
    i have talked to an apple technician through apple care and we came to the conclusion after reseting iwork to default settings still with no changes all i could do was completely remove iwork from my computer and try to start over. Or come to the forums to see if there is a work around.

    Hi Jared,
    Without commentary, or other explanation, it's difficult to determine what actions you are taking to produce the results in the video.
    In the first instance, it appears that you have placed the insertion point at the beginning of the line following the header, then pressed and held return. this action pushes that line (and anything below it) down until it crosses the page boundary and jumps to a second page. That's expected behaviour.
    At approximately 0:57, you have deleted the return characters, returning the first and second lines after the header to a position immediately following the header. The insertion point is then moved to the point at the beginning of the header line, and returns are inserted as before. About 1:04, a number of unreadable alert boxes appear. At 1:07, the second line below the heading moves to the second page, followed by the first line, then by the heading itself at about 1:10. Again this is expected behaviour.
    Only after that are there any 'odd' behaviours, and without knowing what actions you are taking to produce those oddities, it's (at least) difficult to say what is causing the results you see.
    Regards,
    Barry

  • I have recently upgraded to an iphone 5. When trying to sync/ back up with my current i tunes settings. I get the message the it 1.6GB over the storage capacity. Although when syncing my i phone 4 (same size 16GB) i do not have any problems?

    I have recently upgraded to an iphone 5. When trying to sync/ back up with my current i tunes settings. I get the message the it 1.6GB over the storage capacity. Although when syncing my i phone 4 (same size 16GB) i do not have any problems?' I am not sure what the problem may be?

    iOS uses more memory on the iPhone 5 than the iPhone 4 because there are quite a few more to iPhone 5. Therefore there will be less memory available on the 5. Reluctantly iOS 7, coming this fall, uses a bit less memory than iOS 6 so if you can do without a few apps until then you should be gravy!

  • OBIEE 11.1.1.7 - error when trying to refresh GUIDs

    Know its new etc but we have been waiting for 11.1.1.7 for a while and just trying to look at it at the moment.
    We have hit a problem when trying to import a catalogue from our 11.1.1.5 production environment in that the steps to refresh GUIDs that we have previously done when moving from dev > test> prod do not work for 11.1.1.7. The main problem being that when performing the following step :-
    Locate the FMW_UPDATE_ROLE_AND_USER_REF_GUIDS parameter and set it to YES, as follows:
    FMW_UPDATE_ROLE_AND_USER_REF_GUIDS = YES;
    The BI service fails to start using OPMN.
    Anybody come across the same issue?
    Thanks

    along with nqsconfig.ini file you need to do the changes in instanceconfig.xml file too see below:
    Stop Oracle BI Server and Presentation Services on all nodes except where you are refreshing the user GUIDs. For example:
    cd ORACLE_HOME/admin/instancen/bin
    ./opmnctl stopproc ias-component=coreapplication_obips1./opmnctl stopproc ias-component=coreapplicaiton_obis1
    Update the FMW_UPDATE_ROLE_AND_USER_REF_GUIDS parameter in NQSConfig.INI:
    Open NQSConfig.INI for editing at:
    ORACLE_INSTANCE/config/OracleBIServerComponent/coreapplication_obisn
    Locate the FMW_UPDATE_ROLE_AND_USER_REF_GUIDS parameter and set it to YES, as follows:
    FMW_UPDATE_ROLE_AND_USER_REF_GUIDS = YES;
    Save and close the file.
    Update the Catalog element in instanceconfig.xml:
    Open instanceconfig.xml for editing at:
    ORACLE_INSTANCE/config/OracleBIPresentationServicesComponent/
    coreapplication_obipsn
    Locate the Catalog element and update it as follows:
    <Catalog>
    <UpgradeAndExit>false</UpgradeAndExit>
    <UpdateAccountGUIDs>UpdateAndExit</UpdateAccountGUIDs>
    </Catalog>
    Save and close the file.
    Restart the Oracle BI Server and Presentation Services using opmnctl:
    cd ORACLE_HOME/admin/instancen/bin
    ./opmnctl stopproc ias-component=coreapplication_obips1
    ./opmnctl stopproc ias-component=coreapplicaiton_obis1
    ./opmnctl startproc ias-component=coreapplicaiton_obis1
    After you confirm that the Oracle BI Server is running, then start Presentation Services:
    ./opmnctl startproc ias-component=coreapplicaiton_obips1
    Set the FMW_UPDATE_ROLE_AND_USER_REF_GUIDS parameter in NQSConfig.INI back to NO.
    Important: You must perform this step to ensure that your system is secure.
    Update the Catalog element in instanceconfig.xml to remove the UpdateAccount GUIDs entry.
    Restart the Oracle Business Intelligence system components again using opmnctl:
    cd ORACLE_HOME/admin/instancen/bin
    ./opmnctl stopall
    ./opmnctl startall
    Hope it helps

  • Problems when trying to migrate from 6.0 to 6i

    Hi,
    I'm having problems when trying to migrate a Designer 6.0 application to 6i.
    When I get to start the migration after having selected the source application, the process fails immediately after I've pressed the button.
    I'm getting the error: CDR-21244: This process has been aborted and the advice to check the log file. But no log file is created.
    I've read Note 234984.1 which gives two suggestions in this situation: That the ORACLE_HOME environment variable is unset, and that the LOG_DIRECTORY_RAU directory is writeable. Both is fulfilled in my situation. However it seems that the migration procedure tries to start imp - I've noticed a short flash with the command prompt screen - and when I try to start imp manually from the command prompt I get errors. I was able to fix this error by setting ORACLE_HOME and ORA_NLS33. But the defining ORACLE_HOME is "illegal" ref. Note 234984.1. Of course I tried to leave it anyway, but that didn't help neither: The migration still dies a quick and silent dead.
    So now I'm stucked. How can I carry on?
    The source is on version 6.0.3.5.0 running on 8.1.5, and the taget is version 6.5.92.1.9 running on 8.1.7.4.
    Regards, Michael

    The migration from Designer 6.0 to 6i requires careful planning. Please read the migration guide on OTN (http://www.oracle.com/technology/products/designer/index.html) for advice and to assist you with the migration.
    Regards
    Sue

  • I am having the problem when trying to take a panorama picture.   It may only take the first frame or doesn't even start at all when I press the shutter button. even though when i  hold the phone straight up and down, so that camera is at the top

    I am having the problem when trying to take a panorama picture. 
    It may only take the first frame or doesn't even start at all when I press the shutter button.
    even though when i  hold the phone straight up and down, so that camera is at the top on the back and the home button is on the bottom on the front.
    This problem is irritating me....?

    To take panorama
    - ensure that the panorama option is on
    - press the shutter button once
    - you will see a line with an arrow
    - move around in a circle  ( I keep the camera steady and turn myself around in a circle)
    - as you do this you will see the arrow moving across the screen as it captures pictures
    - at the end of the capture, you will be able to see your panorama picture
    I hope that this helps, do report back.

  • Error when trying to refresh the current report

    I am having this error message "Error when trying to refresh the current report on my reports appear before they are executed. It has been a very random so I am unable to pinpoint what is causing it. I am currently working with BO 4.1 and it is connected to BW, whereby the authentication is SSO.
    Either way the reports are able to run with problems but I dislike having to insist with the refresh button or having to close and reopen the report for it to run as it should.
    I did some investigations but did not find anything conclusive because there is no problems with authorizations, there are no merged dimensions nor grouping variables used in the report and it is based on just one query.
    Does anyone know why this error message appears? What its cause is?

    Hi
    While creating the report if we select the authentication mode as :Use specified user name and password or Use Business Objects credential mapping, will get the same error.
    So if possible can you please test change Connection Type Authentication Mode to Single Sign on.
    Find the below link.
    http://scn.sap.com/community/semantic-layer/blog/2014/06/06/how-to-change-connection-type-authentication-mode-to-sso-1

  • I got problem when trying to contact my iphone 4 using facetime,it did ringing,but my iphone 4 did not receive that call as if nothing happen.But,when the call ended,that call appeared in the missed call list.fyi both are connected to internet.

    i got problem when trying to call my iphone 4 using facetime with my Macbook Pro 13',it did ringing,but my iphone 4 did not receive that call as if nothing happen.But,when the call ended,that call appeared in the missed call list.fyi both are connected to internet.Help!! thank you in advance

    i got problem when trying to call my iphone 4 using facetime with my Macbook Pro 13',it did ringing,but my iphone 4 did not receive that call as if nothing happen.But,when the call ended,that call appeared in the missed call list.fyi both are connected to internet.Help!! thank you in advance

  • Does anyone get failure EXC_BAD_ACCESS (SIGBUS) when trying to Sync your Ipad with Itunes ?

    Hello,
    I encounter a problem when trying to sync my iPad.
    The problem occurs after a few seconds when syncing and after that everytime when trying to open iTunes.
    I did not install anything in particular and have still over 20gb of free space on my hard disk.
    The first lines of the error message are displayed below.
    I have tried everything I found on the internet (such as deleting a specific font in my font library), but nothing really made the error disappear.
    Did anyone encounter the same problem and got rid of it ?
    thanks in advance,
    mathieu
    Process:         iTunes [2096]
    Path:            /Applications/iTunes.app/Contents/MacOS/iTunes
    Identifier:      com.apple.iTunes
    Version:         11.0.4 (11.0.4)
    Build Info:      iTunes-1104004001000000~1
    Code Type:       X86 (Native)
    Parent Process:  launchd [92]
    Date/Time:       2013-08-04 18:42:31.452 +0200
    OS Version:      Mac OS X 10.6.8 (10K549)
    Report Version:  6
    Interval Since Last Report:          70280 sec
    Crashes Since Last Report:           54
    Per-App Interval Since Last Report:  13023 sec
    Per-App Crashes Since Last Report:   54
    Anonymous UUID:                      189400FA-CFC7-497D-BE9C-E3D180862647
    Exception Type:  EXC_BAD_ACCESS (SIGBUS)
    Exception Codes: 0x000000000000000a, 0x0000000020a33000
    Crashed Thread:  16
    Thread 0:  Dispatch queue: com.apple.main-thread
    0   libSystem.B.dylib                       0x95e49afa mach_msg_trap + 10
    1   libSystem.B.dylib                       0x95e4a267 mach_msg + 68
    2   com.apple.CoreFoundation                0x916e32df __CFRunLoopRun + 2079
    3   com.apple.CoreFoundation                0x916e23c4 CFRunLoopRunSpecific + 452
    4   com.apple.CoreFoundation                0x916e21f1 CFRunLoopRunInMode + 97
    5   com.apple.HIToolbox                     0x9759de04 RunCurrentEventLoopInMode + 392
    6   com.apple.HIToolbox                     0x9759dbb9 ReceiveNextEventCommon + 354
    7   com.apple.HIToolbox                     0x9759da3e BlockUntilNextEventMatchingListInMode + 81
    8   com.apple.AppKit                        0x968d7595 _DPSNextEvent + 847
    9   com.apple.AppKit                        0x968d6dd6 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 156
    10  com.apple.AppKit                        0x968991f3 -[NSApplication run] + 821
    11  com.apple.iTunes                        0x0017d76f 0x1000 + 1558383
    12  com.apple.iTunes                        0x0017d5e9 0x1000 + 1557993

    I have the same problem recently.
    I emailed them, and a tech/support person emailed me back and told me it was a potential third party app causing it.
    She said if you have any: web accelerators, firewall, or other stuff running it would cause it, but I tried to disable and unistall programs and still the same problem.
    Also I tried to uninstall and start fresh and same deal, even with a new stand alone version, same problem.
    I keep getting a bad kernel error when it crashes, check out here:
    Exception Type: EXCBADACCESS (SIGBUS)
Exception Codes: KERNPROTECTIONFAILURE at 0x0000000000000096
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
    And I have no idea how to fix? Can anyone help?
    

Wes

  • How do i deactivate a device through icloud if the device is broken and i am unable to turn on find my iphone? Also i do not own a apple id as ive been using a family members due to problems when trying to make one?

    How do i deactivate a device through icloud if the device is broken and i am unable to turn on find my iphone? Also i do not own a apple id as ive been using a family members due to problems when trying to make one?

    Hey tyjox,
    Thanks for the question. After reviewing your post, it sounds like you need to deactivate Find My iPhone on a device that does not work. You will need to work with the family member of the account the iPhone is registered with. I would recommend that you use this article to help you resolve or isolate the issue.
    iCloud: Remove your device from Find My iPhone
    http://support.apple.com/kb/PH2702
    Remove an iOS device you no longer have
    If you no longer have the iOS device because you gave it away or sold it, you need to remotely erase it before you can remove it.
    Sign in to icloud.com/#find with your Apple ID (the one you use with iCloud).If you’re using another iCloud app, click the app’s name at the top of the iCloud.com window, then click Find My iPhone.
    Click All Devices, then select the device.
    Click Erase [device], then enter your Apple ID password. Because the device isn’t lost, don’t enter a phone number or message.If the device is offline, the remote erase begins the next time it’s online. You’ll receive an email when the device is erased.
    When the device is erased, click Remove from Account.All your content is erased and someone else can now activate the device.
    Thanks for using Apple Support Communities.
    Have a nice day,
    Mario

  • I am using Lightroom 5 and am hapy about it, but recently I hav encountered a problem when trying to edit an image in another program, i.e. Elements. I used the clone tool, saved the result and went back to Lightroom to open the image there. I did find a

    I am using Lightroom 5 and am hapy about it, but recently I hav encountered a problem when trying to edit an image in another program, i.e. Elements. I used the clone tool, saved the result and went back to Lightroom to open the image there. I did find a second copy, but this is identic with the one I already had in Lightroom, and I can see noe result of the clone process.

    At the moment I would say it is uncertain whether Acrobat is completely ignoring the change, or whether the changes you are making aren't affecting the ink density. I have a suggestion for a test you could make to see which is the case.
    When editing in Photoshop just add a box or mark on the image, for your tests.
    - If this box does not appear in Acrobat, you know Acrobat is not seeing the edit
    - If this box does appear in Acrobat, you know the problem is that your tool for changing ink densities is not taking effect.

  • Runtime :Javascript problem when trying to display the date binded to RFC

    Hi all,
    I am facing a very strange problem. I Have used a Bapi to pass some inputs to the Bapi function and binded the UI with that. But for the date field when i am running the application and trying to specify some date it is giving some Javascript Error and not Showing the date Dialog box
    The Error is "SAPUR_January is null or not an object"
    Is anyone has any idea on it, then please let me know at the earliest.
    Mukesh

    Hi armin and Mani
    For armin: I did't understand for what you are refering to.
    For Mani: Hi mani those are the Input fields and by default they are binded to the Date field only and user has to supply the date parameter. The Small box that comes when you bind a UI field with the Date type when i am clicking on that i am reciving that error.
    Mukesh Poddar

Maybe you are looking for