Open several instances of the update Form - session state handling problem
Hi,
I have a page with a classic report region on a database table and an other page that has an update form region for updating the records on the previous page. The application navigates from the page containing the classic reports region to the update page via the primary key link displayed in the reports region.
Users tend to open the multiple instances of the update form by right clicking in the browser the primary key links in the classic reports region. I couldn't pinpoint the problem yet, but I have 'data overwrite issues' i.e. records are updated with form item values that are entered in the other - concurrently opened - update forms.
Is this the 'normal' way of doing things? I think the problem is that APEX keeps track of only one single instance of any item on a page. If the same page is opened several times in the same browser, APEX updates the state of the page and items within with the one on the most recently opened page or submitted page.
Can I enable users to use the application as they are currently doing, i.e. by opening the update form several times in the same browser concurrently and still make APEX to handle this?
TIA,
Tamas
I would also argue that the amazon.com example is not entirely valid. Opening your products in multiple tabs and hitting "buy" on all of them sounds analogous to multiple "insert"s in our Oracle world...every item is probably not in your cart and so it's possible to stuff three new items into your cart with no conflicts.
The sticky issue is when you are editing existing data and I am not quite seeing Amazon as an example either of working in multiple windows.
I went to amazon.com and signed in. I did the following:
1. Home page came up with suggested items of children's books. I right-clicked on a book (book B) and opened it in a new window and clicked "add to cart". In my original window I clicked on a book (book A) and added it to my cart.
2. I closed the new window I had opened.
3. In the original window in which I was dealin with Book A, I clicked "View cart". It had books A and B in it. I didn't have a separate shopping cart for Book A and a separate shopping cart for Book B! Apex would do the same thing.
4. Now looking at my cart, I hit Ctrl + N and opened a duplicate window. In one window I changed the quantity on Book A to 2 and on the second window I changed the quantity on Book A to 3. When all was said and done, I still had ONE cart and Book A with 3 was the prevailing record. What is it that they would expect Apex to do with a similar situation?
What is it your users are doing in their amazon.com example that is theoretically different than what Apex supports?
Similar Messages
-
How can I avoid opening the several instances of the same form?
Hi Friends,
I have a MDI form with a menu. When open a form by clicking the menu twice, it is opening two instances of the same form. It is eating up all resources of my memory.
How can I avoid opening the multiple instances of the same form? I want the activate the form which is already open instead of opening the new instance of the same.
Anybody knows solution please help me.
Thanks
Gopinath KonaHi,
U must be using the built-in OPEN_FORM in your code. Instead of that, check it using the following code....
IF ID_NULL(FIND_FORM('form_name')) THEN
OPEN_FORM('form_name with the path');
ELSE
GO_FORM('form_name'); --shifts the control into the form which is already open.
END IF;
hope it helps...
null -
Opening multiple instances of the same vi
Hi,
I am having trouble opening multiple instances of the same vi.
This vi that I am trying to create can be used like a message display window to display numbers, strings etc (just like labVIEW's display message control except that this vi will update the displayed controls every scan). So for example, I will like to have a subvi, lets call it popup.vi, where I wire in three inputs from my main vi (2 strings and 1 number). Now in my main.vi I have 2 numeric controls Num1 and Num2 with their KeyFocus property nodes.
The intention is that when I select Num1 or Num2 numeric control with my mouse the KeyFocus boolean becomes true and the popup.vi logic kicks in. Meaning that the popup.vi runs and opens its front pane
l displaying the two strings and one numeric value from the main.vi.
The problem arises when I want to open and run multiple instances of the popup.vi.
So when I click on Num1 with my mouse I want the popup.vi to open its front panel with a set of strings and number displayed. At the same time I would want to click on Num2 control and open another instance of the popup.vi with another set of strings and numeric value.
Also, I saved the popup.vi as popup.vit but for some reason vi server will not open the popup.vit. I get a message that popup.vit is already in memory - cannot load.
I have attached a sample of the main.vi and popup.vi program.
Please let me know if you need further clarifications.
I appreciate your help in this matter.
Thanks
Nish
Attachments:
popupVI.zip 37 KBYou have to clone the VI. You say you have tried to use the .vit way of cloning...but in the example there is no use of VIT and the VI is called statically. If you want to open multiple instances of the same VI and the VI has a user interface (or needs to be a unique instance of the VI every time even though it's called the same place in the diagram, not the case here though) you need to do it dynamically, i.e. with an invoke node.
There is actually a problem doing just that, it causes a memory leak...but that won't be a problem unless the VI is called frequently / the software will be running over very long periods of time. You can see an example of it here (attached to my reply to the question):
http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&
RPAGEID=135&HOID=506500000008000000A07D0000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0&USEARCHCONTEXT_QUESTION_0=VI+cloning&USEARCHCONTEXT_QUESTION_S=0
About the memory leak problem:
http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000B7A40000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0&USEARCHCONTEXT_QUESTION_0=VI+cloning&USEARCHCONTEXT_QUESTION_S=0
MTO -
Open several PDFs in the same Reader window using tabs for each document
How do I open several PDFs in the same Reader window using tabs for each document? I'm using Reader 11.0.03 and Windows 7.
That would be a nice feature! Suggest it at https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform - hopefully it will make it into Reader XII.
-
How do I prevent a user from opening multiple instances on the same computer?
On the site oldnavyweekly.com there is a .swf that prevents users from opening multiple instances of the site at the same time on the same computer. If you open the site, and try to open it a second time in another window, it won't load. You can't open the site again until the first window is closed. How did they implement this?
From my analysis it is NOT:
1. Cookies - The block still takes place if you try opening it in IE and also try opening it in Firefox simultaneously.
2. Flash Cookies - The block still takes place if I disable flash cookies.
3. IP Based Block - You are not blocked if you open the site on two separate computers with the same outbound IP address. From my analysis, their server does not assist in the block at all.
It seems as if their .swf is creating some kind of global system-wide object that can be detected in other instances of the application on the same machine. How did they implement this?
Thanks!you're welcome.
actually, unless you take an extra step, the first opened swf will close. if you want the 2nd to close, the initial receiving lc will send a message to sender that causes the sender to close. -
Stop opening multiple instances of the same application
I am used to having graphic files on my desktop, when editing one I would simply right-click and pick "open with" > Photoshop (which is always open in its own desktop in my computer). Now out of the blue, if I do that, it loads another instance of Photoshop, which is certainly what I don't want. I can have 2, 3, 4 Photoshops running at the same time and editing the same image!
Any idea how to solve this? I searched but all I could find is people wanting the opposite i.e. opening multiple instances of the same app.Your best bet to prevent this is to detach or unmount this drive; however, you can also try resetting your Mac's launch services, to have it re-scan only the Applications folders on your boot drive for programs to associate with documents and services you are using. Running the following command in the OS X Terminal will kill the current launch services database (its long, but copy and paste the entire line):
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill
Following this, run the following command to seed the database with the apps you currently have installed:
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -seed
Note that these changes will only apply when opening documents that have not been specifically assigned to a program. If you find a specific document continues to open the program on the external drive, then you can get info on it and change the associated program in the "Open With" section of the info window. After doing this, you might need to re-run these commands above, as opening the program will register it with OS X's launch services and have it now be available for automatically handling other documents. -
Deploy multiple instances of the same stateless session EJB
I have a stateless session bean.
The methods on the bean operate against DB tables.
Q: Can I deploy multiple instances of the same stateless session bean, but specify a different JNDI/datasource name in the deployment descriptor?
The method calls are all enclosed within a single invocation, just that I need to hit different databases (all with the same schema), and Id like to be able to lookup the EJB via a different JNDI name, and have the exact same functionality, just against different deployed datasources.
Does the spec allow/support this?
If not, any suggestions as to how to achieve this sort of functionality?
Im using JBoss 3.2.1 on Solaris, so Im not sure whether or not this is a JBoss "issue" or a limitation of the EJB Spec (or me being just plain wrong and trying to do something the "wrong way")
NickI have a stateless session bean.
The methods on the bean operate against DB tables.
Q: Can I deploy multiple instances of the same
stateless session bean, but specify a different
JNDI/datasource name in the deployment descriptor?
The method calls are all enclosed within a single
invocation, just that I need to hit different
databases (all with the same schema), and Id like to
be able to lookup the EJB via a different JNDI name,
and have the exact same functionality, just against
different deployed datasources.
Does the spec allow/support this?
If not, any suggestions as to how to achieve this sort
of functionality?
Im using JBoss 3.2.1 on Solaris, so Im not sure
whether or not this is a JBoss "issue" or a limitation
of the EJB Spec (or me being just plain wrong and
trying to do something the "wrong way")
NickI haven't done it but judging from the deployment descriptors yes.
For example if I have two bounded datasources java:/Database1 and java:/Database2
Lets say I have a session bean called MySession, then in your ejb-jar.xml you would have (notice that the desc, display, and ejb-name are the only differences)
<session>
<description>MySessionAlpha</description>
<display-name>MySessionAlpha</display-name>
<ejb-name>MySessionAlpha</ejb-name>
<home>com.mycorp.MySessionRemoteHome</home>
<remote>com.mycorp.MySessionRemote</remote>
<local-home>com.mycorp.MySessionLocalHome</local-home>
<local>com.mycorp.MySessionLocal</local>
<ejb-class>com.mycorp.MySessionFacadeBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
<resource-ref>
<res-ref-name>jdbc/DataSource</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</session>
<session>
<description>MySessionBeta</description>
<display-name>MySessionBeta</display-name>
<ejb-name>MySessionBeta</ejb-name>
<home>com.mycorp.MySessionRemoteHome</home>
<remote>com.mycorp.MySessionRemote</remote>
<local-home>com.mycorp.MySessionLocalHome</local-home>
<local>com.mycorp.MySessionLocal</local>
<ejb-class>com.mycorp.MySessionFacadeBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
<resource-ref>
<res-ref-name>jdbc/DataSource</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</session>
But now in the jboss.xml, we will have the following elements. What you may notice is that are bound to different remote and local jndi names. But the resource bindings are very different. The res-ref-name stays the same, but the jndi-name are different. I think this will work for you.
<session>
<ejb-name>MySessionAlpha</ejb-name> <jndi-name>ejb/com/mycorp/MySessionAlphaRemoteHome</jndi-name> <local-jndi-name>ejb/com/mycorp/MySessionAlphaLocalHome</local-jndi-name>
<resource-ref>
<res-ref-name>jdbc/datasource</res-ref-name>
<jndi-name>java:/Database1</jndi-name>
</resource-ref>
</session>
<session>
<ejb-name>MySessionBeta</ejb-name> <jndi-name>ejb/com/mycorp/MySessionBetaRemoteHome</jndi-name> <local-jndi-name>ejb/com/mycorp/MySessionBetaLocalHome</local-jndi-name>
<resource-ref>
<res-ref-name>jdbc/datasource</res-ref-name>
<jndi-name>java:/Database2</jndi-name>
</resource-ref>
</session> -
How do I open several tabs at the same time?
How do I open several tabs at the same time?
Can't you open more than one tab?
Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
*Don't make any changes on the Safe mode start window.
*https://support.mozilla.com/kb/Safe+Mode
*https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes -
Is there any version of Indesign that allows to open multiple instance at the same time
I am using Indesign CS3 to generate the bulk reports automatically(programmatically) using Adobe indesign library . One of the key limitation to this tool is it allows to open only one instance at a time unlike word where multiple instances can be opened at the same time. Is there any adobe indesign too version desktop/server which allows to open multiple instances at the same time. Any help on is appreciated. Thanks.
@PeterG
You said "You might want to examine the End User Licensing Agreement (EULA) for any prohibition against using these two instances at the same time with the same license; the license does permit two installs for the same user that are not used simultaneously." I thought that meant you had read the EULA. It's pretty unambiguous on that point.
For everyone's edification about multiple installations and server use with a standard license here's the relevant text:
2. Software License.
If you obtained the Software and any required serial number(s) from Adobe or one of its authorized
licensees and as long as you comply with the terms of this agreement, Adobe grants you a non-exclusive
license to install and use the Software in a manner consistent with its design and Documentation and as
further set forth below. See Section 16 for specific provisions related to the use of certain products and
components, for example font software, Acrobat, After Effects, Adobe Presenter, Contribute, Adobe
Device Central, Flash Player, Flash Builder, and Adobe Runtimes.
2.1 Limited Use. The Software, or portions of the Software, may allow installation and use without a serial
number. If so, you may install but not use such non-serialized Software on any number of Computers as
part of an organizational deployment plan. Further, you may install and use such non-serialized Software
on any number of Computers for demonstration, evaluation and training purposes only and only if any
Output Files or other materials produced through such use are used only for internal, non-commercial and
non-production purposes. You may not use such non-serialized Software after any applicable time-out
period has ended, unless you input a valid serial number under Section 2.2. ACCESS TO AND USE OF
ANY OUTPUT FILES CREATED WITH SUCH NON-SERIALIZED SOFTWARE IS ENTIRELY AT
YOUR OWN RISK.
2.2 General Use. You may install and use one copy of the Software only on the Permitted Number of your
compatible Computers into which you enter a valid serial number.
2.3 Distribution from Server. You may copy an image of the Software onto Computer file server(s) within
your Internal Network for the purpose of downloading and installing the Software onto Computers within
the same Internal Network for use as permitted by Section 2.1 and 2.2.
2.4 Server Use. You may install the Software on Computer file server(s) within your Internal Network only
for use of the Software initiated by an individual from a Computer within the same Internal Network only
as permitted by Section 2.2. The total number of users (not the concurrent number of users) able to use the
Software on such Computer file server(s) may not exceed the Permitted Number.
By way of example, the foregoing does not permit you to install or access (either directly or through
commands, data or instructions) the Software: (a) from or to a Computer not part of your Internal Network,
(b) for enabling Web hosted workgroups or services available to the public, (c) by any individual or entity
to use, download, copy or otherwise benefit from the functionality of the Software unless licensed to do so
by Adobe, (d) as a component of a system, workflow or service accessible by more than the Permitted
Number of users, or (e) for operations not initiated by an individual user (e.g., automated server
processing).
2.5 Portable or Home Computer Use. Subject to the important restrictions set forth in Section 2.6, the
primary user of the Computer on which the Software is installed under Section 2.2 (“Primary User”) may
install a second copy of the Software for his or her exclusive use on either a portable Computer or a
Computer located at his or her home, provided that the Software on the portable or home Computer is not
used at the same time as the Software on the primary Computer.
2.6 Restrictions on Secondary Use by Volume Licensees. If the Software was obtained under an Adobe
volume license program (currently known as Adobe Open Options) by any licensee other than an
educational volume licensee, the second copy of the Software made under Section 2.5 must be used solely
for the benefit and business of that volume licensee. For more information about secondary use by volume
licensees, please visit our Web Site at http://www.adobe.com/go/open_options.
There is also language stating that if you have a dual boot or other system capable of running more than one OS you will need a separate license for each platform if you want to run the software on more than one. -
Can you move a 'Multiple Image Upload' button into the 'Update Form'?
I am able to creat and an Update form and an image upload using the "Update Form Wizard" tool and the "Multiple Image Upload" tool succesfully.
<br />
<br />The problem comes when I try to move the "UPLOAD" button inside the Update form. Right now it looks like this:
<br />http://www.webritesolutions.com/Test/upload/now.JPG
<br />
<br />This is how I would like it to show:
<br />http://www.webritesolutions.com/Test/upload/tryingto.JPG
<br />
<br />I want to "Upload" button to go next to the "Update record" button. When I do this I get a javascript error and the "Update record" button is disabled.
<br />Here is the code of what I tried to do:
<br />
<br />
<br />
<br />
<br />
<table>
<tr class="KT_buttons">
<td>
<?php<br /> // Multiple Upload Helper<br /> echo $muploadHelper->Execute();<br /> ?>
</td>
<td colspan="1">
<input type="submit" name="KT_Update1" id="KT_Update1" value="Update record" />
<br /></td>
</tr>
</table>
<br />
<br />Here is the Javascript error:
<br />http://www.webritesolutions.com/Test/upload/error.JPG
<br />
<br />thanks for your help.A control can only appear once in the visual tree. So you have to remove it from the Grid before you can add it to the DockPanel.
This code will move the Border element from the Grid to the DockPanel when you click the button:
Private Sub Button_Click(sender As Object, e As RoutedEventArgs)
Dim border = CType(LayoutRoot.FindName("myborder"), Border)
LayoutRoot.Children.Remove(border)
contain.Children.Add(border)
End Sub
<StackPanel>
<Grid x:Name="LayoutRoot">
<Border x:Name="myborder" BorderBrush="Black" BorderThickness="2">
<TextBlock>...</TextBlock>
</Border>
</Grid>
<DockPanel x:Name="contain" Background="Yellow">
<TextBlock>2</TextBlock>
</DockPanel>
<Button Click="Button_Click" Content="Move"/>
</StackPanel>
You can try it for yourself. But please post your code as formatted text and not as embedded images if you want anyone to be able to reproduce your issue and help you in the future.
Please remember to close your threads by marking helpful posts as answer. -
How to find the invalid form session in oracle Apps
Oracle Apps R12
Hai All
How to find the invalid form session in oracle Apps R12 and How to Kill the that.
Thanks & Regards
Srikkanth.MHi,
Please refer to these docs (for 11i and R12).
How to Kill Inactive Sessions Based on the Information in the Monitor User Form [ID 103516.1]
Script: How To Identify The apps User Using The O/S PID For Forms Users In 11i [ID 185762.1]
Thanks,
Hussein -
Javabean-Timer to control the whole Forms-Session
Hello !
I am looking forr a solution to supervise the whole Forms-session with a javabean-Timer.
I know the available javabean-timer on [http://forms.pjc.bean.over-blog.com|http://forms.pjc.bean.over-blog.com/].
But i am searching for an answer/solution to define a timer once in a Forms-Dialog
which fires for the whole Forms-Session and not only in the Forms-Dialog where he is defined/activated !
I am pleased to see your suggestions...
Thanks - ThomasPlease post your question to the forms forum.
otn.oracle.com/products/form and click on the discussion forums.
Regards
Grant Ronald -
Error 1127 occurred when open multiple instances of the same LabVIEW top level VI?
I try to open multiple instances of the same LabVIEW top level VI, After search some messages in the forum,I know it should use vi template, But error 1127 still occurred when i used template(In my program, Click menu file->new). The information about error 1127 is "Cannot instantiate template VI because it is already in memory".
Here is my code. can any one help me? Thanks.
Attachments:
test.zip 13 KBHi,
You are trying to obtain a path from the VI location but the VI has no location because its an instance of the VIT and therefore the path is <not a path>.
Regards
Ray Farmer
Regards
Ray Farmer -
I have aperture 3.4.5 but si not available the uograde at 3.5 and i can't open my library after the update to' maverick
Marco,
is your main system language set to English? If not, change the language to English in the "Language&Region" System Preferences (see: Re: I bought Aperture in a box et can't upgrade from 3.4.5 to 3.5.). Then sign back into AppStore and reload the Updates panel.
Other things that could prevent the update are, if you moved Aperture from the Applications folder or renamed it. Then put it back.
Léonie -
How to install several instances of the same application on a computer?
Hej,
I have an application in LV 2009, where I have created an installer. The installer installs to a directory called \Receiver relative to the Program Files directory. If I install this once to a computer, everything is OK.
However, I want to install the same application twice on the same computer. There should be no conflicts between the two applications, since I can configure them to work on different directories and ports. But if I call the installer again, and selects another directory, nothing is installed and I get the message "Installation Summary - No software will be installed or removed". It seems like the installer ignores that I have selected another directory, and just uses the default directory, relative to the Program Files directory.
Anyone knows the trick, how to install several instances on the same computer ?
BR, Jan
Jan Nielsen
Freelance system analyst and LabVIEW programmerHi Jan,
This is so because each installer has a GUID that is used to check whether the application needs to be upgraded or not. (It's a Microsoft function).
What you can do is create a new installer with a different GUID (copy the installer in the projects), and check witha text editor whether this GUID has changed.
But any specific reason you need two seperate installs? You can run the application twice with a specific INI token:
allowmultipleinstances=True
Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas
LabVIEW, programming like it should be!
Maybe you are looking for
-
How do I install Ubuntu server on a mac osx.
Ubuntu 10.04 sever (getting a mac in a few months) I want it to work under the ext4 file system.
-
How do I connect my iPad to a new PC and lose the link to my old PC?
I have purchased very littl music through iTunes, but I have a great many CDs copied to iTunes. I established a good link between my iPad (iOS 7) and my PC. Initially I had iTunes Match but my broadband was too slow. I used the sync over wi-fi connec
-
Can't Dual-Boot Win7 from Bootable USB
I have a USB that's been formatted correctly by Bootcamp Assistant, and a mounted .iso of Windows 7 on it. I've downloaded all of the support programs that Bootcamp offered, and partitioned the hard drive the same way. I'm currently running OSX 10.7.
-
I have '09 and use Entourage as my email client. For some reason when I updated to '09 I can't drag photos into an open email. Not sure if it's an issue with Entourage or iPhoto, but it did work fine prior to my upgrading. Any suggestions?? Also, asi
-
Tuff Question: How to create an XML file of Finder items (files & folders)
if you have an ideas on how i can do this please let me know. The goal is have an XML file that has an <item> list for all files and folders in the finder (even the hidden ones) that looks something like this: <Item> <kind>Folder</kind> <name>Applica