JUComboBox LOV Binding Issue
Hi,
I am getting a problem in JUComboBoxLovBinding.
Problem Description --
I have created a JComboBox with used LovBinding (using two view objects -- resortVO and testVO ). The _resortVO is the LOV VO instance.
There is one button which rollbacks the transaction and create a new row for the non-lov view object instance.
I followed the following steps -->
1. Run the application
2. Press the Button.
3. Select an item (say 'ResortA') from the combo box
This sets the ResortId for the _testVO's current row.
4. Again press the Button
5. Then select the same item again i.e. ResortA.
This does not set the ResortId for teh _testVO's current row.
Question -- Why the ResortId is not get selected in Step 5?
The sample code is here --
package testapp;
import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.Rectangle;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.util.Hashtable;
import javax.swing.DefaultListCellRenderer;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JList;
import javax.swing.JPanel;
import oracle.jbo.ApplicationModule;
import oracle.jbo.AttributeDef;
import oracle.jbo.Row;
import oracle.jbo.ViewObject;
import oracle.jbo.client.Configuration;
import oracle.jbo.uicli.binding.JUApplication;
import oracle.jbo.uicli.jui.JUComboBoxBinding;
import oracle.jbo.uicli.jui.JUPanelBinding;
public class TestJUComboLovBinding extends JFrame
private BorderLayout _mainLayout = new BorderLayout();
private JPanel _panelCenter = new JPanel();
private JUPanelBinding _panelBinding;
/** ADD CUSTOM MEMBER VARIABLES HERE **/
private JComboBox _resortComboBox = new JComboBox();
private ViewObject _resortVO,_testVO;
private JButton _createButton = new JButton("Create");
private int count = 0;
/** CUSTOM MEMBER VARIABLES ENDS HERE **/
public TestJUComboLovBinding()
try
jbInit();
} catch (Exception e)
e.printStackTrace();
private void jbInit() throws Exception
this.setSize(350, 210);
this.setBounds( new Rectangle(100, 80, 400, 250));
this.setTitle( "Frame Title" );
ApplicationModule appModule =
Configuration.createRootApplicationModule(
"testapp.TestAppModuleImpl", "TestAppModuleLocal");
JUApplication app = new JUApplication(appModule);
_panelBinding = new JUPanelBinding(app.getName(), null);
_panelBinding.setApplication(app);
_panelCenter.setLayout(_mainLayout);
customJbInit();
this.getContentPane().add("Center",_panelCenter);
_panelBinding.executeIfNeeded();
private void customJbInit()
_resortVO = _panelBinding.getApplicationModule().findViewObject("VResort");
_testVO = _panelBinding.getApplicationModule().findViewObject("VTest");
AttributeDef[] attrDefs = _resortVO.getAttributeDefs();
String[] allAttrNames = new String[attrDefs.length];
for (int i = 0; i < attrDefs.length; i++)
allAttrNames[i] = attrDefs.getName();
_resortComboBox.setModel(
JUComboBoxBinding.createLovBinding
_panelBinding,
_resortComboBox,
_testVO.getName(),
null,
testVO.getName().replace('.','') + "IterBinding",
new String[] {"ResortId"},
_resortVO.getName(),
new String[] {"ResortId"},
allAttrNames,
null,
null
_resortComboBox.addActionListener(
new ActionListener() {
public void actionPerformed(ActionEvent e ){
if(_testVO != null && _testVO.getCurrentRow() != null)
System.out.println("Resort ID -- > " + count++ + ":" + _testVO.getCurrentRow().getAttribute("ResortId"));
_createButton.addActionListener(
new ActionListener() {
public void actionPerformed(ActionEvent e) {
_panelBinding.getApplicationModule().getTransaction().rollback();
_testVO.executeQuery();
Row row = _testVO.createRow();
_testVO.insertRow(row);
panelCenter.add(resortComboBox,BorderLayout.NORTH);
panelCenter.add(createButton,BorderLayout.SOUTH);
public static void main(String[] args)
TestJUComboLovBinding frame = new TestJUComboLovBinding();
frame.addWindowListener(
new WindowAdapter()
public void windowClosing(WindowEvent evnt)
System.exit(0);
frame.setSize(new Dimension(400, 280));
frame.pack();
frame.setVisible(true);
Thanks.
Okay. So it's not the rollback.
Reading your posting one more time, I see that in point 5 you write:
"Then select the same item again".
The problem does not occur when a different item is selected? If that's the case, then it's probably some kind of optimization in the binding that only sets the value when it actually changes.
You could try to do something like that:
_createButton.addActionListener(
new ActionListener() {
public void actionPerformed(ActionEvent e) {
_panelBinding.getApplicationModule().getTransaction().rollback();
_testVO.executeQuery();
Row row = _testVO.createRow();
_testVO.insertRow(row);
// New line to insert:
_resortVO.reset();
);This should ensure that a navigation happens.
You can get the binding from the JUPanelBinding if your main application has access to that. See the getControlBinding() and findControlBinding() methods in JUFormBinding (a super class of JUPanelBinding).
Sascha
Similar Messages
-
LOV Binding issue in ADF JClient Component Demonstration
hi
There seems to be a problem with committing the changes made with the "LOV Binding" in the "ADF JClient Component Demonstration".
see "ADF JClient Component Demonstration" :
http://www.oracle.com/technology/sample_code/products/jdev/1012/jclient_guide/adf_jclientcomponentdemo.zip
scenario (using JDeveloper 10.1.2) :
(1) run componentdemo.StartFrame
(2) click the first button to get to the "LOV Binding Demo"
(3) click in the "State" field and press F3
(4) select a new value from the "List Of Values", click OK
(5) notice the value in the "State" field has changed, click "File" > "Exit"
(6) click on "Commit" when asked "How do you want to close the transaction?"
(7) run componentdemo.StartFrame again and navigate to the "LOV Binding Demo" again
(8) notice that the "State" field still has its old value
How can this be explained?
thanks
Jan Verveckenthanks for your reply Frank
To verify what the behavior would be in the JDeveloper version it was built for, I tried to open the Workspace in JDeveloper 9.0.5.2 and got this "Unable to Open File" message:
"File D:\<path>\ADFJClientComponentDemo.jws was saved in version 10120 file format and cannot be opened with an older version of JDeveloper 10g."
To make sure, I downloaded this again
http://www.oracle.com/technology/sample_code/products/jdev/1012/jclient_guide/adf_jclientcomponentdemo.zip
and I got the same error message.
Could you please hint to a solution for this (in JDeveloper 10.1.2 if possible).
greetings
Jan Vervecken -
Attachment binding issue in workflow
Hi All,
I have used FM 'SAP_WAPI_ATTACHMENT_ADD ' in method of my workflow. Here after executing this FM i m getting id of the attachment for this workitem. But now i need to assign this to '_Attach_Objects' of workflow container. so please help me for this binding issue. which i need to bind from method to> task to> workflow. so from next step onwards in workflow i will get that attachment.
Smit ShahHi,
1) In the T.code SWO1, you have to create a custom method for the BO, there execute that method and check whether it working fine
2) Then goto T.code PFTC and Create a Task (Task no. will generate automatically), then call this method and generate the binding
3) Goto T.code SWDD and call that Task by assigning that Task no. and assign the binding
Then test your workflow.
For the Binding see this [link|http://help.sap.com/saphelp_nw04/helpdata/en/c8/bfc39b0fc57a49a0291378f8be0cd6/frameset.htm].
Regards,
Surjith -
JDev 9.0.3 LOV-Binding Bug?
Hi!
I've got a little problem with JDev 9.0.3 when migrating my project from JDev 9.0.2. All known Bugs from JDev 9.0.2 seem to be fixed but therefore other bugs appeared.
My Problem in detail:
I have 2 views (simplified):
ORDERVIEW
-- OrderId (DBSequence)
-- OrderTypeIdFK (Number)
ORDERTYPEVIEW
-- OrderTypeId (Number)
-- OrderTypeDescription (String)
On a panel I display a textfield with OrderId and a ComboBox which should display the according OrderTypeDescription.
So I created a LOVBinding on this ComboBox:
LOV-ViewObject
OrderTypeView
-- OrderTypeId
TargetViewObject
OrderView
-- OrderTypeIdFk
LOV attributes to display
-- OrderTypeDescription
In JDev 9.0.2 this works perfectly, besides the missing search-function.
When migrating to 9.0.3 without performing any changes I got the following exception when changing a OrderView-Row by selecting another OrderTypeDescription from the ComboBox:
oracle.jbo.domain.DataCreationException: JBO-25009: Cannot create an object of type:oracle.jbo.domain.Number with value: Buy
("Buy" is one OrderTypeDescription)
It seems that JDev wants to write OrderTypeDescription into the OrderTypeFK-Field. Of course, that can't work...
If I change "LOV attributes to display" to "OrderTypeId" it works fine, but that's not what I want....
Any suggestions? Thanks a lot
BernhardI have a problem very much like the one Bernhard described but in 9.0.2. A combobox with LOV-binding first worked fine but then I decided to make the control non-editable to force the user select one of the list items, not modifying the combobox contents by keyboard. After all, it makes no sense to let the user write something that has no counterpart in the LOV list. So I added 'myCombo.setEditable(false)' in my code. The result was that the combobox still shows Ok a description corresponding to an id value found in database but if I pick another value in the combobox list and try to update it to database then I get the same error Bernhard did. Is this the same bug? Should I upgrade to 9.0.3 (we are planning to do it) and get the patch to it or is there any other remedy?
- Risto -
[2 Bugs] BC4J/JClient 9.0.3 JComboBox + LOV Binding
I may have stumbled across some other bugs.. Here's how you may reproduce them:
2 Tables (both are filled with proper values, PK's and FK's are set):
EMP(ID: NUMBER, DESC: VARCHAR2, DEPT_ID: NUMBER)
DEPT(ID: NUMBER, DESC: VARCHAR2)
All appropriate ViewObjects and stuff have been generated and are in place.
I have a JClient Panel and on it sits a JComboBox.
The model of the JComboBox is set through the property editor to a
JClient LOV Binding which looks as follows: DEPT.ID goes into EMP.DEPT_ID
and the displayed LOV attribute is: DEPT.DESC
Now, when I run the program, I attempt to select a new value from the JComboBox.
This will succeed, but as soon as the JComboBox looses focus, I get this exception:
oracle.jbo.domain.DataCreationException: JBO-25009: Cannot create an object of type:
oracle.jbo.domain.Number with value: <insert displayed value in JComboBox here>When I add DEPT.ID to the displayed LOV attributes, no exception is thrown.
That's because the String "(some number) (spaces) (some string)" will in
fact be parsed to a valid number.
However, because of this measure, only the DEPT.ID will be shown in the JComboBox
when it's in its 'closed state'.
This leads me to the second bug. When selecting multiple attributes to be
displayed into the JComboBox, the order in which I put them doesn't seem to
'stick'. Everytime the ID attribute is first and the rest follows in the same
order in which the table's columns have been defined. Re-ordering them
manually in the property editor, doesn't seem to help. The order will be
forgotten after I close and re-open the property editor.
The first bug doesn't seem to have any real negative effect. The new value
is stored nonetheless; after committing and restarting the application,
all new values are still available.
(Stack Trace follows)
Hope This Helps
ArnoAs promised, here's the stack trace. The 'offending' value is "Rubriek".
Exception occurred during event dispatching:
oracle.jbo.domain.DataCreationException: JBO-25009: Cannot create an object of type:oracle.jbo.domain.Number with value:Rubriek
java.lang.Object oracle.jbo.domain.TypeFactory.get(java.lang.Class, java.lang.Class, java.lang.Object)
TypeFactory.java:713
java.lang.Object oracle.jbo.domain.TypeFactory.getInstance(java.lang.Class, java.lang.Object)
TypeFactory.java:80
int oracle.jbo.uicli.binding.JUCtrlListBinding.findListIndex(java.lang.Object)
JUCtrlListBinding.java:567
java.lang.Object oracle.jbo.uicli.binding.JUCtrlListBinding.findMatchingListValue(java.lang.Object)
JUCtrlListBinding.java:425
java.lang.Object oracle.jbo.uicli.controls.JUMultiAttrListEditor.getItem()
JUMultiAttrListEditor.java:65
void javax.swing.plaf.basic.BasicComboBoxUI$EditorFocusListener.focusLost(java.awt.event.FocusEvent)
BasicComboBoxUI.java:1394
void java.awt.AWTEventMulticaster.focusLost(java.awt.event.FocusEvent)
AWTEventMulticaster.java:171
void java.awt.Component.processFocusEvent(java.awt.event.FocusEvent)
Component.java:3642
void javax.swing.JComponent.processFocusEvent(java.awt.event.FocusEvent)
JComponent.java:1980
void java.awt.Component.processEvent(java.awt.AWTEvent)
Component.java:3535
void java.awt.Container.processEvent(java.awt.AWTEvent)
Container.java:1164
void java.awt.Component.dispatchEventImpl(java.awt.AWTEvent)
Component.java:2593
void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
Container.java:1213
void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
Component.java:2497
boolean java.awt.LightweightDispatcher.setFocusRequest(java.awt.Component)
Container.java:2076
void java.awt.Container.proxyRequestFocus(java.awt.Component)
Container.java:1335
void java.awt.Container.proxyRequestFocus(java.awt.Component)
Container.java:1330
void java.awt.Container.proxyRequestFocus(java.awt.Component)
Container.java:1330
void java.awt.Container.proxyRequestFocus(java.awt.Component)
Container.java:1330
void java.awt.Container.proxyRequestFocus(java.awt.Component)
Container.java:1330
void java.awt.Container.proxyRequestFocus(java.awt.Component)
Container.java:1330
void java.awt.Container.proxyRequestFocus(java.awt.Component)
Container.java:1330
void java.awt.Container.proxyRequestFocus(java.awt.Component)
Container.java:1330
void java.awt.Container.proxyRequestFocus(java.awt.Component)
Container.java:1330
void java.awt.Container.proxyRequestFocus(java.awt.Component)
Container.java:1330
void java.awt.Component.requestFocus()
Component.java:4174
void javax.swing.JComponent.grabFocus()
JComponent.java:915
void javax.swing.JComponent.requestFocus()
JComponent.java:897
void javax.swing.text.DefaultCaret.mousePressed(java.awt.event.MouseEvent)
DefaultCaret.java:315
void java.awt.AWTEventMulticaster.mousePressed(java.awt.event.MouseEvent)
AWTEventMulticaster.java:221
void java.awt.AWTEventMulticaster.mousePressed(java.awt.event.MouseEvent)
AWTEventMulticaster.java:220
void java.awt.Component.processMouseEvent(java.awt.event.MouseEvent)
Component.java:3712
void java.awt.Component.processEvent(java.awt.AWTEvent)
Component.java:3544
void java.awt.Container.processEvent(java.awt.AWTEvent)
Container.java:1164
void java.awt.Component.dispatchEventImpl(java.awt.AWTEvent)
Component.java:2593
void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
Container.java:1213
void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
Component.java:2497
void java.awt.LightweightDispatcher.retargetMouseEvent(java.awt.Component, int, java.awt.event.MouseEvent)
Container.java:2451
boolean java.awt.LightweightDispatcher.processMouseEvent(java.awt.event.MouseEvent)
Container.java:2210
boolean java.awt.LightweightDispatcher.dispatchEvent(java.awt.AWTEvent)
Container.java:2125
void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
Container.java:1200
void java.awt.Window.dispatchEventImpl(java.awt.AWTEvent)
Window.java:922
void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
Component.java:2497
void java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)
EventQueue.java:339
boolean java.awt.EventDispatchThread.pumpOneEventForHierarchy(java.awt.Component)
EventDispatchThread.java:131
void java.awt.EventDispatchThread.pumpEventsForHierarchy(java.awt.Conditional, java.awt.Component)
EventDispatchThread.java:98
void java.awt.EventDispatchThread.pumpEvents(java.awt.Conditional)
EventDispatchThread.java:93
void java.awt.EventDispatchThread.run()
EventDispatchThread.java:85
## Detail 0 ##
java.lang.NumberFormatException: k
int java.lang.Integer.parseInt(java.lang.String, int)
Integer.java:414
int java.lang.Integer.parseInt(java.lang.String)
Integer.java:463
void java.math.BigDecimal.<init>(java.lang.String)
BigDecimal.java:149
void oracle.jbo.domain.Number.<init>(java.lang.String)
Number.java:258
java.lang.Object java.lang.reflect.Constructor.newInstance(java.lang.Object[])
native code
java.lang.Object oracle.jbo.domain.TypeConvMapEntry.convert(java.lang.Class, java.lang.Class, java.lang.Object)
TypeConvMapEntry.java:66
java.lang.Object oracle.jbo.domain.TypeFactory.get(java.lang.Class, java.lang.Class, java.lang.Object)
TypeFactory.java:681
java.lang.Object oracle.jbo.domain.TypeFactory.getInstance(java.lang.Class, java.lang.Object)
TypeFactory.java:80
int oracle.jbo.uicli.binding.JUCtrlListBinding.findListIndex(java.lang.Object)
JUCtrlListBinding.java:567
java.lang.Object oracle.jbo.uicli.binding.JUCtrlListBinding.findMatchingListValue(java.lang.Object)
JUCtrlListBinding.java:425
java.lang.Object oracle.jbo.uicli.controls.JUMultiAttrListEditor.getItem()
JUMultiAttrListEditor.java:65
void javax.swing.plaf.basic.BasicComboBoxUI$EditorFocusListener.focusLost(java.awt.event.FocusEvent)
BasicComboBoxUI.java:1394
void java.awt.AWTEventMulticaster.focusLost(java.awt.event.FocusEvent)
AWTEventMulticaster.java:171
void java.awt.Component.processFocusEvent(java.awt.event.FocusEvent)
Component.java:3642
void javax.swing.JComponent.processFocusEvent(java.awt.event.FocusEvent)
JComponent.java:1980
void java.awt.Component.processEvent(java.awt.AWTEvent)
Component.java:3535
void java.awt.Container.processEvent(java.awt.AWTEvent)
Container.java:1164
void java.awt.Component.dispatchEventImpl(java.awt.AWTEvent)
Component.java:2593
void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
Container.java:1213
void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
Component.java:2497
boolean java.awt.LightweightDispatcher.setFocusRequest(java.awt.Component)
Container.java:2076
void java.awt.Container.proxyRequestFocus(java.awt.Component)
Container.java:1335
void java.awt.Container.proxyRequestFocus(java.awt.Component)
Container.java:1330
void java.awt.Container.proxyRequestFocus(java.awt.Component)
Container.java:1330
void java.awt.Container.proxyRequestFocus(java.awt.Component)
Container.java:1330
void java.awt.Container.proxyRequestFocus(java.awt.Component)
Container.java:1330
void java.awt.Container.proxyRequestFocus(java.awt.Component)
Container.java:1330
void java.awt.Container.proxyRequestFocus(java.awt.Component)
Container.java:1330
void java.awt.Container.proxyRequestFocus(java.awt.Component)
Container.java:1330
void java.awt.Container.proxyRequestFocus(java.awt.Component)
Container.java:1330
void java.awt.Container.proxyRequestFocus(java.awt.Component)
Container.java:1330
void java.awt.Component.requestFocus()
Component.java:4174
void javax.swing.JComponent.grabFocus()
JComponent.java:915
void javax.swing.JComponent.requestFocus()
JComponent.java:897
void javax.swing.text.DefaultCaret.mousePressed(java.awt.event.MouseEvent)
DefaultCaret.java:315
void java.awt.AWTEventMulticaster.mousePressed(java.awt.event.MouseEvent)
AWTEventMulticaster.java:221
void java.awt.AWTEventMulticaster.mousePressed(java.awt.event.MouseEvent)
AWTEventMulticaster.java:220
void java.awt.Component.processMouseEvent(java.awt.event.MouseEvent)
Component.java:3712
void java.awt.Component.processEvent(java.awt.AWTEvent)
Component.java:3544
void java.awt.Container.processEvent(java.awt.AWTEvent)
Container.java:1164
void java.awt.Component.dispatchEventImpl(java.awt.AWTEvent)
Component.java:2593
void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
Container.java:1213
void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
Component.java:2497
void java.awt.LightweightDispatcher.retargetMouseEvent(java.awt.Component, int, java.awt.event.MouseEvent)
Container.java:2451
boolean java.awt.LightweightDispatcher.processMouseEvent(java.awt.event.MouseEvent)
Container.java:2210
boolean java.awt.LightweightDispatcher.dispatchEvent(java.awt.AWTEvent)
Container.java:2125
void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
Container.java:1200
void java.awt.Window.dispatchEventImpl(java.awt.AWTEvent)
Window.java:922
void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
Component.java:2497
void java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)
EventQueue.java:339
boolean java.awt.EventDispatchThread.pumpOneEventForHierarchy(java.awt.Component)
EventDispatchThread.java:131
void java.awt.EventDispatchThread.pumpEventsForHierarchy(java.awt.Conditional, java.awt.Component)
EventDispatchThread.java:98
void java.awt.EventDispatchThread.pumpEvents(java.awt.Conditional)
EventDispatchThread.java:93
void java.awt.EventDispatchThread.run()
EventDispatchThread.java:85
Exception occurred during event dispatching:
oracle.jbo.domain.DataCreationException: JBO-25009: Cannot create an object of type:oracle.jbo.domain.Number with value:Rubriek
java.lang.Object oracle.jbo.domain.TypeFactory.get(java.lang.Class, java.lang.Class, java.lang.Object)
TypeFactory.java:713
java.lang.Object oracle.jbo.domain.TypeFactory.getInstance(java.lang.Class, java.lang.Object)
TypeFactory.java:80
int oracle.jbo.uicli.binding.JUCtrlListBinding.findListIndex(java.lang.Object)
JUCtrlListBinding.java:567
java.lang.Object oracle.jbo.uicli.binding.JUCtrlListBinding.findMatchingListValue(java.lang.Object)
JUCtrlListBinding.java:425
java.lang.Object oracle.jbo.uicli.controls.JUMultiAttrListEditor.getItem()
JUMultiAttrListEditor.java:65
void javax.swing.plaf.basic.BasicComboBoxUI$EditorFocusListener.focusLost(java.awt.event.FocusEvent)
BasicComboBoxUI.java:1394
void java.awt.AWTEventMulticaster.focusLost(java.awt.event.FocusEvent)
AWTEventMulticaster.java:171
void java.awt.Component.processFocusEvent(java.awt.event.FocusEvent)
Component.java:3642
void javax.swing.JComponent.processFocusEvent(java.awt.event.FocusEvent)
JComponent.java:1980
void java.awt.Component.processEvent(java.awt.AWTEvent)
Component.java:3535
void java.awt.Container.processEvent(java.awt.AWTEvent)
Container.java:1164
void java.awt.Component.dispatchEventImpl(java.awt.AWTEvent)
Component.java:2593
void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
Container.java:1213
void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
Component.java:2497
boolean java.awt.LightweightDispatcher.processFocusEvent(java.awt.event.FocusEvent)
Container.java:2167
boolean java.awt.LightweightDispatcher.dispatchEvent(java.awt.AWTEvent)
Container.java:2130
void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
Container.java:1200
void java.awt.Window.dispatchEventImpl(java.awt.AWTEvent)
Window.java:922
void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
Component.java:2497
void java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)
EventQueue.java:339
boolean java.awt.EventDispatchThread.pumpOneEventForHierarchy(java.awt.Component)
EventDispatchThread.java:131
void java.awt.EventDispatchThread.pumpEventsForHierarchy(java.awt.Conditional, java.awt.Component)
EventDispatchThread.java:98
void java.awt.EventDispatchThread.pumpEvents(java.awt.Conditional)
EventDispatchThread.java:93
void java.awt.EventDispatchThread.run()
EventDispatchThread.java:85
## Detail 0 ##
java.lang.NumberFormatException: k
int java.lang.Integer.parseInt(java.lang.String, int)
Integer.java:414
int java.lang.Integer.parseInt(java.lang.String)
Integer.java:463
void java.math.BigDecimal.<init>(java.lang.String)
BigDecimal.java:149
void oracle.jbo.domain.Number.<init>(java.lang.String)
Number.java:258
java.lang.Object java.lang.reflect.Constructor.newInstance(java.lang.Object[])
native code
java.lang.Object oracle.jbo.domain.TypeConvMapEntry.convert(java.lang.Class, java.lang.Class, java.lang.Object)
TypeConvMapEntry.java:66
java.lang.Object oracle.jbo.domain.TypeFactory.get(java.lang.Class, java.lang.Class, java.lang.Object)
TypeFactory.java:681
java.lang.Object oracle.jbo.domain.TypeFactory.getInstance(java.lang.Class, java.lang.Object)
TypeFactory.java:80
int oracle.jbo.uicli.binding.JUCtrlListBinding.findListIndex(java.lang.Object)
JUCtrlListBinding.java:567
java.lang.Object oracle.jbo.uicli.binding.JUCtrlListBinding.findMatchingListValue(java.lang.Object)
JUCtrlListBinding.java:425
java.lang.Object oracle.jbo.uicli.controls.JUMultiAttrListEditor.getItem()
JUMultiAttrListEditor.java:65
void javax.swing.plaf.basic.BasicComboBoxUI$EditorFocusListener.focusLost(java.awt.event.FocusEvent)
BasicComboBoxUI.java:1394
void java.awt.AWTEventMulticaster.focusLost(java.awt.event.FocusEvent)
AWTEventMulticaster.java:171
void java.awt.Component.processFocusEvent(java.awt.event.FocusEvent)
Component.java:3642
void javax.swing.JComponent.processFocusEvent(java.awt.event.FocusEvent)
JComponent.java:1980
void java.awt.Component.processEvent(java.awt.AWTEvent)
Component.java:3535
void java.awt.Container.processEvent(java.awt.AWTEvent)
Container.java:1164
void java.awt.Component.dispatchEventImpl(java.awt.AWTEvent)
Component.java:2593
void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
Container.java:1213
void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
Component.java:2497
boolean java.awt.LightweightDispatcher.processFocusEvent(java.awt.event.FocusEvent)
Container.java:2167
boolean java.awt.LightweightDispatcher.dispatchEvent(java.awt.AWTEvent)
Container.java:2130
void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
Container.java:1200
void java.awt.Window.dispatchEventImpl(java.awt.AWTEvent)
Window.java:922
void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
Component.java:2497
void java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)
EventQueue.java:339
boolean java.awt.EventDispatchThread.pumpOneEventForHierarchy(java.awt.Component)
EventDispatchThread.java:131
void java.awt.EventDispatchThread.pumpEventsForHierarchy(java.awt.Conditional, java.awt.Component)
EventDispatchThread.java:98
void java.awt.EventDispatchThread.pumpEvents(java.awt.Conditional)
EventDispatchThread.java:93
void java.awt.EventDispatchThread.run()
EventDispatchThread.java:85 -
A data-binding issue with a combo box.
Hi,
Iu2019m having a data-binding issue with a combo box. The field it is bound to is an integer. The valid values in the combo box are 1, 2, and 3. If I add a record when it is set to 1 or 2, the value gets stored correctly. If I add a record when it is set to 3, it is stored as 1. However, I can bring up the record just added on the form, change it to 3, and click u201CUpdateu201D and it is saved correctly as 3. If I change it so that the valid values are 4, 5, and 6, it saves a 1 regardless of what is selected in the combo box. It looks like the combo box is correctly bound for updates but not for adds. The table is a master type UDO. Any ideas? Iu2019m somewhat committed to the field being an integer. I'm using 2007A PL47.
Thanks,
Mike
Edited by: Mike Angelastro on Jul 1, 2009 2:43 PMI tried a few things on my own. The result is that I decided that it was not a good idea to use a combo box bound to an integer (numeric) field. I donu2019t think the SDK can handle it. The reason it was an integer field in the first place is that before I changed it to a combo box it was a group of two option buttons. Option buttons use an integer (numeric) field. This worked just fine until I added a third option; the SDK didnu2019t handle the third option correctly when adding records. I thought that using a combo box instead would fix that. I was wrong; the problem remained. So I decided to use a character (alphanumeric) field instead. This works just fine.
So here is my advice: Never use option buttons if they need to be bound to the database; a combo box will actually work better when bound to the database. But use a character (alphanumeric) field.
Edited by: Mike Angelastro on Jul 5, 2009 9:15 PM -
Revision: 17187
Revision: 17187
Author: [email protected]
Date: 2010-08-04 13:44:35 -0700 (Wed, 04 Aug 2010)
Log Message:
Fixed binding issue on the source property of the contact's picture
Modified Paths:
cairngorm3/trunk/samples/insync/insync-modularExtended-contacts/src/insync/contacts/prese ntation/ContactForm.mxmlRevision: 17187
Revision: 17187
Author: [email protected]
Date: 2010-08-04 13:44:35 -0700 (Wed, 04 Aug 2010)
Log Message:
Fixed binding issue on the source property of the contact's picture
Modified Paths:
cairngorm3/trunk/samples/insync/insync-modularExtended-contacts/src/insync/contacts/prese ntation/ContactForm.mxml -
Revision: 17186
Revision: 17186
Author: [email protected]
Date: 2010-08-04 13:43:41 -0700 (Wed, 04 Aug 2010)
Log Message:
Fixed binding issue on the source property of the contact's picture
Modified Paths:
cairngorm3/trunk/samples/insync/insync-basic/src/insync/presentation/ContactForm.mxmlRevision: 17186
Revision: 17186
Author: [email protected]
Date: 2010-08-04 13:43:41 -0700 (Wed, 04 Aug 2010)
Log Message:
Fixed binding issue on the source property of the contact's picture
Modified Paths:
cairngorm3/trunk/samples/insync/insync-basic/src/insync/presentation/ContactForm.mxml -
JComboBox, LOV-Binding, OutOfMemory
Hi all,
using a combobox with lov binding and a table with more than 600 entries is producing an outOfMemory-Error after a while.
That can be seen (e.g. in Task-manager under Windows) if just srolling up and down the popup window of the combobox (Very bad... :-( ).
Does anyone know how to prevent this ?
I think it must be some problem with the JUMultiAttrListCellRenderer class of oracle.jbo.uicli.controls but I am not sure about this.
Thanks in advance
Guido.You're using a combo to populate 600 entries ....
Wow! Swing default Combo model is not designed to handle large sets of data specially if this data is an object like a Row representing a db table row...
What's basically happening is all the 600 or more entries are being loaded upfront which is sending all your cpu cycles and ultimately out-of-memory...
You may either 'set the vm parameter' for more memory
(use java -mx option)
or
you may use the Button Lov binding to pop this LOV list in a dialog which then uses delayed fetch.
or
you may write a 'custom ComboBox Model' that does not fetch all the data upfront. -
3.1 Page 0 LOV APP_ITEM issues
Hello,
I recently upgraded from 3.0.1 to 3.1 and my application appears to have broken.
I have a select list on page 0. The LOV query references an application item using the bind syntax. similar to
select col1 d, col2 r
from my_table
where col3 = :MY_APP_ITEM
order by 1
Since upgrading to 3.1, the select lists are empty after submitting the page, even when the session shows a value in my application item.
This problem only manifests in the select list LOV. If i create a display only item with MY_APP_ITEM as the source, it displays fine.
It almost seems like the page 0 LOV queries are parsed before the session is populated on page load.
Has anybody seen this? Any advice?
Thanks in advance
Matt CoxHi Guys,
I am encountering a similar problem to the one mentioned here. I've tried to create a dynamic LOV as below:-
select state_name AS Display_val, state_abbrev as Return_Val
from Pay_US_States@&DB_LINK_APP_ITEM.
order by 1
but I get the following error message...
LOV query is invalid, a display and a return value are needed, the column names need to be different. If your query contains an in-line query, the first FROM clause in the SQL statement must not belong to the in-line query.
When I change the query to reference the db link directly, it works fine.
select state_name AS Display_val, state_abbrev as Return_Val
from Pay_US_States@dbname_link
order by 1
I am using version 3.1.0.00.32 of APEX and the db link refers to a remote database. APEX itself is installed on a local XE database.
I have other page references to the application item which work fine but using it in LOVs does not seem possible.
The application item is set on my login page (page 211) in the login process as follows...
:DB_LINK_APP_ITEM := :P211_DB_NAME||'_LINK';
wwv_flow_custom_auth_std.login(
P_UNAME => :P211_USERNAME,
P_PASSWORD => :P211_PASSWORD,
P_SESSION_ID => v('APP_SESSION'),
P_FLOW_PAGE => :APP_ID||':2'
Any help would be great!
Thanks,
Donal -
Possible Bug In Application Import (LOV binding lost for columns in IR)
Hi,
I've experienced strange behavior when after I imported application into APEX 4.1
What I have done:
1) Exported application from 4.0 - (db 11.1)
2) Imported application into different instance - APEX 4.1 (db 11.2) to different workspace (using diferent schema) and with different application ID - manually changed (original was 106 new was 206)
What happened:
In Interactive Reports columns that were displayed as "Display as Text (Based on LOV, escape special characters)" lost their link to appropriate LOV - so the field "Named List of Values" shows "- Select Named LOV -" instead of the LOV name, which was assigned there in original application I exported.
Also - Named LOV imported OK with application.
And If application was imported under same ID, this issues was not there. So it looks only related if application ID changes from exported app.
Any idea why such strange behaviour happens? Is it bug, if yes is there already fix for it?
I have two workspaces on same db instance and want to migrate application between them - this make things complicated.
Regards
IvanHi,
this is bug# 10369735 which has been fixed in 4.1. It was a problem of the export in 4.0 which didn't include all the necessary information. See Copying or exporting an application - bug? LOVs not getting set in reports
So I think you have two options:
1) If you upgrade your existing 4.0 system to 4.1 you should be fine. If you now export your app all the LOV information will be included.
2) If you export from a 4.0 system and import it into a 4.1 system you have fix your LOVs once again and then you are fine.
Regards
Patrick
My Blog: http://www.inside-oracle-apex.com
APEX Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolf -
Hi,
I have an lov where i search an employee using employee number. With the help of these lov i bring inormation related to this employee say
info1, info2, info3, info 4 and info5
All these fields are mapped to message styled text on parent page.
Now my issues is, when i click on the lov torch icon so as to search a new employee, it opens up the lov pop up window and clears all the fields related to my mapping for info1, info2, info3 except keeping info4 and info5. Ideally when i click on lov again, it should clear of all the fields which were avl on the page because of my previous search. I am not sure what causes this problem. Can anyone help me out.<lovMappings>
<lovMap id="lovMap3" lovItem="EmployeeNumber" criteriaFrom="EmpNumber" resultTo="EmpNumber"/>
<lovMap id="lovMap4" lovItem="EmployeeName" resultTo="EmpName" criteriaFrom="EmpName"/>
<lovMap id="lovMap5" lovItem="HrmName" resultTo="CurrHRM"/>
<lovMap id="lovMap6" lovItem="MgrName" resultTo="CurrMGR"/>
<lovMap id="lovMap7" lovItem="OrganizationName" resultTo="CurrOrg"/>
<lovMap id="lovMap8" lovItem="PuName" resultTo="CurrPU"/>
<lovMap id="lovMap9" lovItem="BusinessGroupName" resultTo="CurrBG"/>
<lovMap id="lovMap10" lovItem="EmpUserPersonType" resultTo="PersonType"/>
<lovMap id="lovMap11" resultTo="EmpPersonId" lovItem="EmployeePersonId"/>
<lovMap id="lovMap12" resultTo="EmpNum" lovItem="EmployeeNumber"/>
<lovMap id="lovMap13" resultTo="CurrBGId" lovItem="BusinessGroupId"/>
<lovMap id="lovMap14" resultTo="CurrOrgId" lovItem="OrganizationId"/>
<lovMap id="lovMap15" resultTo="CurrMGREmpNum" lovItem="MgrEmployeeNumber"/>
<lovMap id="lovMap16" resultTo="CurrMGRPersonId" lovItem="MgrPersonId"/>
<lovMap id="lovMap17" resultTo="CurrHRMEmpNum" lovItem="HrmEmployeeNumber"/>
<lovMap id="lovMap18" resultTo="CurrHRMPersonId" lovItem="HrmPersonId"/>
<lovMap id="lovMap19" resultTo="CurrPUEmpNum" lovItem="PuEmployeeNumber"/>
<lovMap id="lovMap20" resultTo="CurrPUPersonId" lovItem="PuPersonId"/>
<lovMap id="lovMap34" resultTo="frmEmpName" lovItem="EmployeeName"/>
<lovMap id="lovMap35" resultTo="frmCurrBG" lovItem="BusinessGroupName"/>
<lovMap id="lovMap36" resultTo="frmCurrOrg" lovItem="OrganizationName"/>
<lovMap id="lovMap37" resultTo="frmCurrMGR" lovItem="MgrName"/>
<lovMap id="lovMap38" resultTo="frmCurrHRM" lovItem="HrmName"/>
<lovMap id="lovMap39" resultTo="frmCurrPU" lovItem="PuName"/>
<lovMap id="lovMap44" lovItem="EmpUserPersonType" resultTo="frmPersonType"/>
<lovMap id="lovMap58" lovItem="IFG" resultTo="CurrIFG"/>
<lovMap id="lovMap59" lovItem="BS" resultTo="CurrBusSegment"/>
<lovMap id="lovMap60" lovItem="SB" resultTo="CurrSubBusiness"/>
</lovMappings>
When i clear off the LOV item by putting new employee number and click the torch icon, it clears of all the fields on parent page except IFG, BS, SB. -
SQL query / binding issues on my web page
This may or maynot be the place to ask, but maybe someone can
tell me what
to look at...
I created a page some time back.. and its displays a few
fields of data
based on the id passed to it..
This works fine, but now that we are trying to improve the
site a little,
they want some additonal information displayed
on the page.. so those changes were made about 2 weeks ago...
now that some
of the newer records contain the data
they want displayed, some data is not displaying.. or it will
display and
other fields ( that were displaying before ) are now
missing.. the web page hasnt been touched in 2 weeks.. if we
execute the
store procedure within SQL and within our web program
it always returns the correct data.. but the fields that i
have binded to
the page are taking on a life of there own...
Not sure if anyone has had this problem, but its getting
annoying.. when i
execute this within SQL it returns all the values requested.
If i execute it
within dreamweaver to show me what results i will get back it
works there..
but after i bind the fields to my page and view it only some
or all my
fields do not display any data... but if i play around with
the order of my
select statement below i can get some fields to display and
other
disappear... and i dont ever touch my webpage again...
Can anyone shed some light on this issue? Or is there a
better way to
display my results so that what i get back with my query will
always
display....
here is my stored procedure that im calling
SET NOCOUNT ON;
SELECT
c.cfname,c.clname,c.cid,h.termcode,h.hiredate,h.lastdate,h.cdateh,
h.cdatet,h.startdate,h.managername,h.termby,
availsun1,availsun2,availmon1,availmon2,availtue1,availtue2,
availwed1,availwed2,availthur1,availthur2,availfri1,availfri2,
availsat1,availsat2,h.comby,ssn_dash = dbo.SSN_dash(cssn),
Home = dbo.PhoneNumber_complete_format(chphone),
Mobile = dbo.PhoneNumber_complete_format(cmphone),
Other = dbo.PhoneNumber_complete_format(cophone),
Jobtitle =
case
when c.st = '90' then
(select top 1 j.jobtitle from has.dbo.JobCodes j where j.hjob
= h.jobid and
j.hlocation = 'DC')
else
(select top 1 j.jobtitle from has.dbo.JobCodes j where j.hjob
= h.jobid and
j.hlocation <> 'DC')
end,
(Select T.term_reason
From has.dbo.termcodes T, has_arc.dbo.EmpTermHistory H
where T.term_val = H.termcode and h.cid = @cid) as
TermReason,
Days = @day,
Months = @month,
Years = @year
FROM has_arc.dbo.EmpCandidate C, has_arc.dbo.EmpTermHistory H
WHERE C.cid = @cid AND C.cid = H.cid
END
ASP, SQL2005, DW8 VBScriptAnd when it says read the columns left to right... i would
imagine that
means my select statement should select the columns in the
order of which
they are in the tables?
so in my case.. if HomePhone is last column in my table it
should be the
last in the select statement?
ASP, SQL2005, DW8 VBScript
"Daniel" <[email protected]> wrote in message
news:[email protected]...
> Now when you say TEXT type.. your refering to the data
types i have setup
> in the database? correct
>
> Within the database the fields that im querying are
pretty much all
> varchar a few are date and one int
>
>
>
>
> --
> ASP, SQL2005, DW8 VBScript
> "Joris van Lier" <[email protected]> wrote in
message
> news:[email protected]...
>>
>>
>> "Daniel" <[email protected]> wrote in message
>> news:[email protected]...
>>> This may or maynot be the place to ask, but
maybe someone can tell me
>>> what
>>> to look at...
>>>
>>> I created a page some time back.. and its
displays a few fields of data
>>> based on the id passed to it..
>>> This works fine, but now that we are trying to
improve the site a
>>> little,
>>> they want some additonal information displayed
>>> on the page.. so those changes were made about 2
weeks ago... now that
>>> some
>>> of the newer records contain the data
>>> they want displayed, some data is not
displaying.. or it will display
>>> and
>>> other fields ( that were displaying before ) are
now
>>> missing.. the web page hasnt been touched in 2
weeks.. if we execute the
>>> store procedure within SQL and within our web
program
>>> it always returns the correct data.. but the
fields that i have binded
>>> to
>>> the page are taking on a life of there own...
>>>
>>> Not sure if anyone has had this problem, but its
getting annoying.. when
>>> i
>>> execute this within SQL it returns all the
values requested. If i
>>> execute it
>>> within dreamweaver to show me what results i
will get back it works
>>> there..
>>> but after i bind the fields to my page and view
it only some or all my
>>> fields do not display any data... but if i play
around with the order of
>>> my
>>> select statement below i can get some fields to
display and other
>>> disappear... and i dont ever touch my webpage
again...
>>>
>>> Can anyone shed some light on this issue? Or is
there a better way to
>>> display my results so that what i get back with
my query will always
>>> display....
>>>
>>> here is my stored procedure that im calling
>>> SET NOCOUNT ON;
>>> SELECT
>>>
c.cfname,c.clname,c.cid,h.termcode,h.hiredate,h.lastdate,h.cdateh,
>>> h.cdatet,h.startdate,h.managername,h.termby,
>>>
availsun1,availsun2,availmon1,availmon2,availtue1,availtue2,
>>>
availwed1,availwed2,availthur1,availthur2,availfri1,availfri2,
>>> availsat1,availsat2,h.comby,ssn_dash =
dbo.SSN_dash(cssn),
>>> Home = dbo.PhoneNumber_complete_format(chphone),
>>> Mobile =
dbo.PhoneNumber_complete_format(cmphone),
>>> Other =
dbo.PhoneNumber_complete_format(cophone),
>>> Jobtitle =
>>> case
>>> when c.st = '90' then
>>> (select top 1 j.jobtitle from has.dbo.JobCodes j
where j.hjob = h.jobid
>>> and
>>> j.hlocation = 'DC')
>>> else
>>> (select top 1 j.jobtitle from has.dbo.JobCodes j
where j.hjob = h.jobid
>>> and
>>> j.hlocation <> 'DC')
>>> end,
>>> (Select T.term_reason
>>> From has.dbo.termcodes T,
has_arc.dbo.EmpTermHistory H
>>> where T.term_val = H.termcode and h.cid = @cid)
as TermReason,
>>> Days = @day,
>>> Months = @month,
>>> Years = @year
>>>
>>> FROM has_arc.dbo.EmpCandidate C,
has_arc.dbo.EmpTermHistory H
>>> WHERE C.cid = @cid AND C.cid = H.cid
>>> END
>>>
>>>
>>> --
>>> ASP, SQL2005, DW8 VBScript
>>
>>
>> Are any of these fields by chance of TEXT type (or
other Binary Large
>> OBject type)?
>> In this case there are certain limitations the text
fields must be the
>> last in your SQL statement and may only
>> be retrieved ONCE reliably.
>>
>> <%
>> Dim myTextVar
>> myTextVar = Recordset.Fields.Item("TEXTFIELD").value
>> %>
>> <% If NOT IsNull(myTextVar) Then%>
>> <%=(Replace(myTextVar, chr(13),
"<BR>"))%>
>> <% End If ' NOT IsNull(myTextVar) %>
>>
>> Here's an excerpt from the Microsoft Site
>>
>> When dealing with BLOB fields from Microsoft SQL
Server, you must put
>> them
>> to the right of non-BLOB columns in the resultset.
To be safe, you should
>> also read the columns in left-to-right order, so if
you have two BLOB
>> columns as the last two columns in your resultset,
read the first one and
>> then the second. Do not read them in the reverse
order.
>> MS:
http://support.microsoft.com/support/kb/articles/q175/2/39.asp
>>
>> Joris van Lier
>
> -
SQL query / binding issues within dreamweaver
Not sure if anyone has had this problem, but its getting
annoying.. when i
execute this within SQL it returns all the values requested.
If i execute it
within dreamweaver to show me what results i will get back it
works there..
but after i bind the fields to my page and view it only some
or all my
fields do not display any data... but if i play around with
the order of my
select statement below i can get some fields to display and
other
disappear... and i dont ever touch my webpage again...
Can anyone shed some light on this issue? Or is there a
better way to
display my results so that what i get back with my query will
always
display....
here is my stored procedure that im calling
SET NOCOUNT ON;
SELECT
c.cfname,c.clname,c.cid,h.termcode,h.hiredate,h.lastdate,h.cdateh,
h.cdatet,h.startdate,h.managername,h.termby,
availsun1,availsun2,availmon1,availmon2,availtue1,availtue2,
availwed1,availwed2,availthur1,availthur2,availfri1,availfri2,
availsat1,availsat2,h.comby,ssn_dash = dbo.SSN_dash(cssn),
Home = dbo.PhoneNumber_complete_format(chphone),
Mobile = dbo.PhoneNumber_complete_format(cmphone),
Other = dbo.PhoneNumber_complete_format(cophone),
Jobtitle =
case
when c.st = '90' then
(select top 1 j.jobtitle from has.dbo.JobCodes j where j.hjob
= h.jobid and
j.hlocation = 'DC')
else
(select top 1 j.jobtitle from has.dbo.JobCodes j where j.hjob
= h.jobid and
j.hlocation <> 'DC')
end,
(Select T.term_reason
From has.dbo.termcodes T, has_arc.dbo.EmpTermHistory H
where T.term_val = H.termcode and h.cid = @cid) as
TermReason,
Days = @day,
Months = @month,
Years = @year
FROM has_arc.dbo.EmpCandidate C, has_arc.dbo.EmpTermHistory H
WHERE C.cid = @cid AND C.cid = H.cid
END
ASP, SQL2005, DW8 VBScriptCan anyone help shed some light on this?
ASP, SQL2005, DW8 VBScript
"Daniel" <[email protected]> wrote in message
news:ff3ud8$10k$[email protected]..
> Not sure if anyone has had this problem, but its getting
annoying.. when i
> execute this within SQL it returns all the values
requested. If i execute
> it within dreamweaver to show me what results i will get
back it works
> there.. but after i bind the fields to my page and view
it only some or
> all my fields do not display any data... but if i play
around with the
> order of my select statement below i can get some fields
to display and
> other disappear... and i dont ever touch my webpage
again...
>
> Can anyone shed some light on this issue? Or is there a
better way to
> display my results so that what i get back with my query
will always
> display....
>
> here is my stored procedure that im calling
> SET NOCOUNT ON;
> SELECT
>
c.cfname,c.clname,c.cid,h.termcode,h.hiredate,h.lastdate,h.cdateh,
> h.cdatet,h.startdate,h.managername,h.termby,
>
availsun1,availsun2,availmon1,availmon2,availtue1,availtue2,
>
availwed1,availwed2,availthur1,availthur2,availfri1,availfri2,
> availsat1,availsat2,h.comby,ssn_dash =
dbo.SSN_dash(cssn),
> Home = dbo.PhoneNumber_complete_format(chphone),
> Mobile = dbo.PhoneNumber_complete_format(cmphone),
> Other = dbo.PhoneNumber_complete_format(cophone),
> Jobtitle =
> case
> when c.st = '90' then
> (select top 1 j.jobtitle from has.dbo.JobCodes j where
j.hjob = h.jobid
> and j.hlocation = 'DC')
> else
> (select top 1 j.jobtitle from has.dbo.JobCodes j where
j.hjob = h.jobid
> and j.hlocation <> 'DC')
> end,
> (Select T.term_reason
> From has.dbo.termcodes T, has_arc.dbo.EmpTermHistory H
> where T.term_val = H.termcode and h.cid = @cid) as
TermReason,
> Days = @day,
> Months = @month,
> Years = @year
>
> FROM has_arc.dbo.EmpCandidate C,
has_arc.dbo.EmpTermHistory H
> WHERE C.cid = @cid AND C.cid = H.cid
> END
>
>
> --
> ASP, SQL2005, DW8 VBScript
> -
Upgrade seems to have caused bind issues
I upgraded to APEX 3.2 today, and I'm finding some things that broke in my application. The installation of 3.2 went fine, then I switched to the APEX_030200 schema and enabled the APEX_PUBLIC_USER, bounced the webserver, and was able to get in. But two of my applications were missing. They just weren't there. I reverted back to 3.0 and did an export of those applications and re-imported them into 3.2. Now I am going through them and there seem to be a few problems.
I am trying to create a dropdown list as follows:
select ADMIN_USERNAME d, ID r
from APEX_ACCESS_CONTROL
where ORG_ID in
(SELECT ORG_ID FROM ORG_ENTITIES
CONNECT BY PRIOR ORG_ID = MNG_ORG_ID
START WITH ORG_ID = :G_USER_ORGID)
and CLERK = 'Y'
order by ADMIN_USERNAMEThe bind variable is an application variable. If I use a hard value, the LOV works fine, but as soon as I change it out to a substitution variable, the dropdown comes up nulll - no values at all.
PS. I have double-checked, and the session state shows G_USER_ORGID with the correct value (populated on page 1 on login).
I didn't get any errors in the logs during the upgrade. This should work, but doesn't. Can anyone point me at a fix? I depend on these application variables a LOT and this application is mission critical.Sorry, I that application build was the same one we used to import after it disappeared. I've tried three different LOV queries on that page. The one that works is:
select ADMIN_USERNAME d, ID r
from APEX_ACCESS_CONTROL
where CLERK = 'Y'
order by 1This one doesn't work:
select ADMIN_USERNAME d, ID r
from APEX_ACCESS_CONTROL
where ORG_ID in
(SELECT ORG_ID FROM ORG_ENTITIES
CONNECT BY PRIOR ORG_ID = MNG_ORG_ID
START WITH ORG_ID =
(SELECT ORG_ID FROM APEX_ACCESS_CONTROL
WHERE ID = v('G_USER_ORGID')))
and CLERK = 'Y'
order by ADMIN_USERNAMENor does this one:
select a.ADMIN_USERNAME d, a.ID r
from APEX_ACCESS_CONTROL a
where a.ORG_ID in (select ORG_ID from ORG_ENTITIES
where MNG_ORG_ID = DECODE(:G_USER_ORGID,901,MNG_ORG_ID,:G_USER_ORGID)
union SELECT ORG_ID from ORG_ENTITIES
where ORG_ID = :G_USER_ORGID)
and a.ORG_ID > 0
order by 1All three work just fine in SQL-Plus, but the two referencing the global variable don't work in APEX after the upgrade.
Maybe you are looking for
-
OS Windows 8.1 64bit Processor Intel Core i7-4700MQ @2.4Ghz, 4 core RAM 16G Available Memory 13G Graphics card GeForce GT 755M (up to date driver) Bits/Pixel: 32 4096MB available graphics memory As you can see I have plenty of Ram on this computer, y
-
Problem in getEelementById() method-null pointer exception
Hi All, I am using DocumentBuilder factory for parsing a xml file. I am getting the document object and also creating an element in the root element .And also I am setting the element id for the element as attiribute .I need to select the element hav
-
Another victim of the suddenly-missing AppleTV in iTunes
I picked up my AppleTV a couple of weeks ago, brought it home and synced it successfully to a G4 iMac. Put some content on it, and it ran quite well. Last night I get home, and iTunes cannot see the device any more. The only variable? Installed the Q
-
Can someone please help me create an interactive feature.
I am creating a website for a small business using Adobe Dreamweaver CS6 and am trying to create an interactive feature where the text appears once a button is clicked. The interactive feature I am trying to create is on the website: http://www.speci
-
Hi, I am getting following pop-up message on the NT server supporting OWB - Java Virtual Machine Launcher - Fatal exception occured. Program will exit. We are using OWB 10.1 and oracle 10g Please let me know what is the cause and remedy of this probl