ONETIME_WHERE property problem

Hi ALL,
Forms 10g 10.1.2.0.2 and Win-XP sp2
I have a form , on it's When-new-form-instance trigger i wrote this code
Set_Block_Property('jourhead',ORDER_BY,'VOCH_NO');
Set_Block_Property('jourhead',DEFAULT_WHERE,'IDENT='||V_IDENT);
Where :
VOCH_NO is a varchar2 text item
v_ident is a number variable
I have a button in this form, i wrote this code for When-button-pressed trigger
Set_Block_Property ('JOURHEAD',ONETIME_WHERE,'VOCH_NO='||''''||V_PREV_record||'''');
EXECUTE_QUERY;
This code works fine but sometimes the form freezes at the line (execute_query)
Note, The form doesn't freeze if i wrote this line like this :
Set_Block_Property ('JOURHEAD',ONETIME_WHERE,'VOCH_NO='||V_PREV_record);
But this is not the case, it doesn't give the required result.
What is wrong in this code ?
Please help
Thanks
Message was edited by:
Mostafa Abolaynain

Hi Ade,
Before set item property the value is displayed right , and sometimes the form freezes before displaying the message (this may be for the same record).
Ade i noticed a very strange behaviour :
the following syntax freezes the form :
Set_Block_Property('JOURHEAD',DEFAULT_WHERE,' IDENT= '||FV.V_IDENT);
Set_Block_Property('JOURHEAD',ONETIME_WHERE,'VOCH_NO='||''''||V_PREV_record||'''');
However the following syntax doesn't freeze the form :
Set_Block_Property('JOURHEAD',ONETIME_WHERE,'VOCH_NO'||'='||''''||V_PREV_record||''''||' AND IDENT='||FV.V_IDENT);
Aren't the two syntax the same ??
I confused .

Similar Messages

  • NJawin: User32 and property problems

    Hi everybody, especially Vitaly Shelest ;)
    I'm using latest NJawin (1.1.31) and jsdk1.4.2 for wrapping some DLLs. It works, but there are several problems:
    1) When null and "" (empty strings) are passes in IDispatch property put methods for String properties, there is an exception thrown;
    2) HelloJava sample from Jawin distribution won't work. It ends with
    Exception in thread "main" java.lang.OutOfMemoryError: requested -627650838 bytes
    It won't work with Jawin either.
    It's sad, but there is no source code available for NJawin. So I experience a little bit of helplessness =(
    Did anybody manage to create a window with NJawin WinAPI fuctions? Do you know any workarounds for String properties in IDispatch?
    Regards,
    Vladimir Kirillov
    vladikir SOBAKA pochta TOCHKA ru

    Hi Vladimir,
    I have made a test: wrote COM server DLL with one property testString
    STDMETHODIMP CnjTest::get_testString(BSTR *pVal);
    STDMETHODIMP CnjTest::put_testString(BSTR newVal);and java code
    import NJAWINTESTLib.InjTest;
    import NJAWINTESTLib.njTest;
    import com.develop.jawin.COMException;
    public class jawinTest {
        public static void main(String[] args) throws COMException {
            InjTest obj = new InjTest(njTest.clsID);
            obj.settestString(new String());
            String str = obj.gettestString();
            System.exit(0);
    }When the parameter in settestString is null njawin generates VARIANT type VT_NULL. This is wrong. If you want to path an empty string use new String() or "". This is equivalent to null and njawin will generate VARIANT with type VT_BSTR.
    Vitaly

  • Httpservice url property problem

    hello everyone
    I need to include non latin characters in my httpservice url property. It points to a file. (http://www.myurl.com/nonLatinCharactersInFilename.xml)And its giving me errors.
    When I check the error, the url appears like so: http://www.myurl.com/??????????????????.xml
    Im using these character set everywhere in the code and there are no problems except when im sending the httpservice call.
    I also have same characters in the result event. and theres no prpblem with that.
    Any ideas how I can include these file names in the url property? or is there another way?
    In my app the user clicks a list (of file names with non latin characters) and an http service is sent to load the corresponding file to a richEditableText component.
    every thing except the non latin character part works fine
    any help in the right direction will be appreciated.
    thanx

    Hello,
    I am not shure, but I think you have to use a webserver, with
    a folder directing to your desktop. Then you can use something like
    that:
    http://localhost/Desktop.
    Otherwise you can try file:///C://Documents and
    Settings/[username]/Desktop/flex/...xml
    I hope this will help

  • DateTimeConverter pattern property problem

    Anyone else have a problem entering a date/time pattern using the custom editor button [...] in the Properties tab?
    Every time I enter a pattern (eg. EEE, d MMM yyyy HH:mm:ss zzzz) using the pop-up custom editor (accessed by clicking the little [...] button in the Properties tab for a seleted dateTimeConverter object) the pattern property doesn't take. After clicking 'OK' in the custom editor the pattern property remains blank.
    The pattern is saved if you enter it directly in the Property tab text box without using the custom editor pop up.
    Is this supposed to happen?
    I noticed this as I went through the 'Tutorials About Converters' at http://devservices.sun.com/premium/jscreator/standard/learning/tutorials/converters.html - specifically Example Three: Using Converters for Date and Time Formatting.
    Many thanks to anyone who can explain what I am doing wrong.
    Regards,
    J

    I put this little method into the session bean and it works well for me. I wrote it so it is in the pattern that
    MySql likes for datetime.
    Its handy for calling anywhere in the programme.
    public String getTimeStamp(){      
    SimpleDateFormat formatter= new SimpleDateFormat("yy-MM-dd HH:mm:ss");
    Date currentTime_1 = new Date();
    String dateString = formatter.format(currentTime_1);
    return dateString;
    Hope this helps Phil.

  • OO4O 10g and VB6 Bookmark Property Problem

    Hi All,
    I'm facing a problem with the BookMark property. It's throwing OIP-04121 Error.
    Below are the details
    Controls used:
    1) SSDBGrid of v3.11
    2) ORADC of v10g
    Code:
    Private Sub gridMain_RowLoaded(ByVal Bookmark As Variant)
    Dim PubHol As PUBLIC_HOLIDAY
    Dim Rs As Object 'Oracle DynaSet
    Set Rs = datMain.Recordset.dbClone()
    Rs.Bookmark = Bookmark ' Getting OIP-04121 Error here
    If Rs("year") = 0 Then
    gridMain.Columns(1).text = "----"
    Else
    gridMain.ColText(1) = Rs("year")
    End If
    The code is working fine in VB3.0, OO4O 1.0 and Sheridan Data Widgets 1.0e. However it's throwing error with VB6, OO4O latest versions and Sheridan Data Widgets 3.11.
    Please help me I tried many ways but failed. Kindly provide some alternate way to achieve this BookMark.
    Thanks and Regards,

    Hi All,
    I'm facing a problem with the BookMark property. It's throwing OIP-04121 Error.
    Below are the details
    Controls used:
    1) SSDBGrid of v3.11
    2) ORADC of v10g
    Code:
    Private Sub gridMain_RowLoaded(ByVal Bookmark As Variant)
    Dim PubHol As PUBLIC_HOLIDAY
    Dim Rs As Object 'Oracle DynaSet
    Set Rs = datMain.Recordset.dbClone()
    Rs.Bookmark = Bookmark ' Getting OIP-04121 Error here
    If Rs("year") = 0 Then
    gridMain.Columns(1).text = "----"
    Else
    gridMain.ColText(1) = Rs("year")
    End If
    The code is working fine in VB3.0, OO4O 1.0 and Sheridan Data Widgets 1.0e. However it's throwing error with VB6, OO4O latest versions and Sheridan Data Widgets 3.11.
    Please help me I tried many ways but failed. Kindly provide some alternate way to achieve this BookMark.
    Thanks and Regards,

  • Bound property problem

    Can the property binding in javabeans work if the bean doesnt have a "PropertyChange" method implemented in it. If yes, then how ?
    Similarly, how does a bean handle the case of multiple bound properties. This question arises because, there is only one "propertyChange" method in a bean and it recieves a PropertyChangeEvent parameter. In case of multiple bound properties how does a bean know which properties propertychange event has been fired?

    But this means that the property change listener has to be aware of the names of all the properties that it can bind, which is a severe limitation ! This is because , if I want to make a bean which has a property color , then it would be very difficult to make the bean so generic so that it can be bound to any bean containing a property representing a color. Unless and Until I know the name of the property of the source bean, I cannot make use of the propertyChange method of the destination bean to handle the change in property.
    The problem comes when a bean has multiple properties . In that case, in it's property change method, it has to filter based on the names which are not known until runtime.

  • Component binding property problem

    following problem:
    I have a form where I built a dataTable with a dynamic number of columns. To achieve this, I used a component binding (backing bean) to dynamically add columns.
    The form is used for different kind of queries and every query has it's own number of columns. The query-identification is submitted via a request parameter.
    All the data in the query-form are o.k. (bean values) but the backing bean will not be called in case of a new request (same jsf-form, but other request-parameter).
    example:
    http://host/url.faces?id=1
    http://host/url.faces?id=2
    <h:dataTable id="test"
                 value="#{test.values}"
                 var="i"
                 rendered="true"
                 binding="#{test.table}">
    </h:dataTable>whereas test is a bean which is created in a servlet listener and also updated with the corresponding id from the request.
    The table-property depends on the id given in the request.
    why ?

    ok, I found out, that using the <h:commandLink> with a param-tag solves this issue.
    Now the backing-bean's method to build the table is all-time called.
    And it works even after an expired session.
    But unfortunately I do not really know, why it works this way and the other it doesn't...

  • Classpath and property problem in services

    Hi, all,
    I've had a number of problems getting the Stockquote example to run properly. This seems to be due to a problem that services don't get either classpaths or properties when they start.
    The first manifestation of this problem came when the proxySet, proxyHost, and proxyPort environment variables weren't getting set properly in class services.stockquote.Stockquote. The symptom was that url.openStream () timed out because the proxy was not set correctly.
    The second symptom comes when"JavaPort" is used as the port on the client. Despite every attempt I've made to put services.stockquote.Stockquote on the classpath, URLClassLoader will not find this class. However, a call to Class.forName("services.stockquote.Stockquote") in Main.java, just before the bottom of the stack, works! It works in both the client and the server!
    So, could someone please tell me why the classpath and properties are getting shucked, and how to get them right?
    I'm on Windows 2000 :p using JDK 1.3.1 and Tomcat 4.0.
    Thanks,
    - Steve.

    Vivek, I think this belongs in a different thread. Also you'll need to say what problems you're having.
    The only thing that definitely needs to be changed about the example is that the service may fail if it's run behind a proxy server. You'll need to set the following System properties:
    System.setProperty("proxySet", "true");
    System.setProperty("proxyHost", "your.proxy.com");
    System.setProperty("proxyPort", <your proxy port>");
    If this isn't done you'll get an exception like the following:
    Exception in thread "main" com.ibm.wsif.WSIFException: SOAP Fault:SOAP-ENV:Server Exception from service object: Operation timed out: connect
    -S.

  • JSF/Spring integration - managed-property problem

    I am using JSF 1.1_01 (MyFaces 1.1), Spring 1.2, Ajax4Jsf.
    The JSF application has h:selectOneMenu .
    On change event of h:selectOneMenu sets "selectedValue" into backing bean as shown below:
    page.jsp
    <h:selectOneMenu value="#{test.selectedDevice}" >
    <f:selectItem itemValue="0" itemLabel="--New--"/>
    <f:selectItem itemValue="1" itemLabel="WorkStation"/>
    <f:selectItem itemValue="2" itemLabel="Router"/>
    <f:selectItem itemValue="3" itemLabel="Switch"/>
    <ajax:support action="#{test.loadDevice}" event="onchange" reRender="t2,t3,t4,t5"/>
    </h:selectOneMenu>
    TestBean.java (Backing Bean)
    public String getSelectedDevice() {
    logger.info(" *** In getSelectedDevice *** ");
    if (selectedDevice == null) {
    selectedDevice = "0"; // This will be the default selected item.
    return selectedDevice;
    public void setSelectedDevice(String selectedDevice) {
    logger.info(" *** In setSelectedDevice *** ");
    this.selectedDevice = selectedDevice;
    Here are the configuration file snippets for integrating JSF Spring
    web.xml
    <listener>
    <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
    </listener>
    <context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>/WEB-INF/applicationContext.xml</param-value>
    </context-param>
    faces-config.xml
    <application>
    <variable-resolver>org.springframework.web.jsf.DelegatingVariableResolver</variable-resolver>
    </application>
    <managed-bean>
    <managed-bean-name>test</managed-bean-name>
    <managed-bean-class>test.TestBean</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    <managed-property>
    <property-name>deviceManager</property-name>
    <property-class> test.DeviceTypeManager </property-class>
    <value>#{deviceManager}</value>
    </managed-property>
    </managed-bean>
    The above code results in the following error
    javax.faces.FacesException: Cannot get value for expression '#{test.selectedDevice}'
    The error occurs only if i include <managed-property> inside the <managed-bean> in faces-config.xml.
    The moment i remove <managed-property> from face-config.xml the error disappears & page gets rendered properly.
    The purpose in having <managed-property> inside managed-bean is to call Spring's Manager class (i.e. deviceManager) from JSF application
    Any pointers/suggestions in resolving the error will be highly appreciated
    Regards
    Bansi

    The TestBean have a property for DeviceManager along with setter/getter methods as shown below. Sorry for not including in earlier posting
    TestBean.java (Backing Bean)
    private DeviceTypeManager deviceManager;
    public DeviceTypeManager getDeviceManager() {
         return deviceManager;
    public void setDeviceManager(DeviceTypeManager deviceManager) {
         this.deviceManager = deviceManager;
    Here are the two scenarios
    Scenario 1 : without <managed-property> the code works fine
    Scenario 2 : with <managed-property> the code results in following error
    javax.faces.FacesException: Cannot get value for expression '#{test.selectedDevice}'
    Scenario 1 has only JSF whereas Scenario 2 has JSF-Spring integration
    The Scenario 1 works absolutely fine as the expression '#{test.selectedDevice}' gets its value from setter/getter method in the backing bean(TestBean.java) . This is expected behaviour & wondering why it doesn't work similarly in Scenario 2 instead it complains
    Cannot get value for expression '#{test.selectedDevice}'
    I am willing to upload the war file. Any pointers/suggestions in resolving the error will be highly appreciated
    Regards
    Bansi

  • Property Problem

    Can you tell me why I am getting an error message in my
    Nproj.mxml file? This is an mxml/class project. I get the same
    error #1120: Access of undefined property myProduct. I get it seven
    times from these seven lines. What is wrong with myProduct?
    myProduct.setQuantity(3);
    myProduct.setPrice(2.99);
    myProduct.setDesc("Teddy Bear");
    trace(myProduct.getDesc());
    trace(myProduct.getPrice());
    trace(myProduct.getQuantity());
    trace(myProduct.getTotal());
    The class is listed in the file folder: Nproj/Product.as.
    This is my file, Nproj.mxml.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Script>
    <![CDATA[
    import Product;
    var myProduct = new Product();
    myProduct.setQuantity(3);
    myProduct.setPrice(2.99);
    myProduct.setDesc("Teddy Bear");
    trace(myProduct.getDesc());
    trace(myProduct.getPrice());
    trace(myProduct.getQuantity());
    trace(myProduct.getTotal());
    ]]>
    </mx:Script>
    </mx:Application>
    This is my actionscript class, Product.as.
    package
    class Product {
    //Instance Variables
    private var price:Number;
    private var desc:String;
    private var quantity:Number;
    function Product() {
    function getPrice():Number {
    return price;
    function setPrice(myVar:Number):void {
    price = myVar;
    function getQuantity():Number {
    return quantity;
    function setQuantity(quantity:Number):void {
    this.quantity = quantity;
    function getDesc():String {
    return desc;
    function setDesc(myVar:String):void {
    desc = myVar;
    function getTotal():Number {
    return price*quantity;
    Thanks,
    BudHud

    Probably because you haven't set any access levels for your
    class or your setters and getters.
    it should be:
    public class Product
    public function getPrice():Number
    public function setPrice(myVar:Number):void
    and so on.
    Also, although it's not required, try to do this for your
    variables and functions in your application file. Like so:
    private var myProduct = new Product();

  • IDE JTree Edit Bindings Icon property problem

    When I right click on a Jtree then Edit Bindings I cannot set the
    Icon Property
    Open Icon Property
    Closed Icon Property
    because only <default> is available.
    In my JPanel source code I have
    a declaration
    private ImageIcon tree_leaf=new ImageIcon(DEVIRE.class.getResource("/infopath/model/tree_leaf.png"));
    which works fine when I set the propery icon for a Jlabel.
    tree_leaf is displayed in the properties and can be selected and it works.
    How can I have it available for my JTree also, so that I can select it?
    Thank you in advance.
    Edited by: Georgekl on 23 Αυγ 2012 11:09 πμ

    for Delete button , copy the properties from working icon, then u can check and modify

  • IView "automatic" height property problem

    Hi SDN,
    very annoying one ....
    I have "km document iView" pointing to html file.
    my user is editing the html file (add \ remove line ) so ... basically, my user determine the iView height (the height of the iView is determine by the lines number the user wrote ... )
    Height property is set to "Automatic" .
    all work fine !
    But , when I put this iview in a page with another iview [vertical order (one above the other ... )]
    the "automatic" height stop working ....
    the iview height is not changing dynamically  .... it always in the same Height .. with scrollbars ...
    Any ideas why ?
    I just want to get the effect of the "automatic" height  of the iview within a page ...
    10x in advance,
    Hadar

    Hi ,
    check the below note
    Note 1147133 - Wrong vertical scrollbar for KM navigation iView
    It will resolve your issue
    https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1147133
    Points are welcome if it is useful
    Koti Reddy

  • Collection valued bean property problem

    Hi.
    If I have this property:
    private List<String> myList;Should I annotate it with @OneToMany etc.. ?
    I mean, this is a String.... not custom Entity.

    Can someone help anyway ?

  • Rollover/Hover Property Problem

    I just recently (last week) upgraded from DWMX to DW CS4.
    I've used it to revise some information on a site. For the links, I
    have the page properties set up for the link to be blue, the hover
    to be red, and visited to be blue. The existing links work
    correctly, but the new links that I created (under the heading
    Press Releases) in CS4 do not turn red when you hover over the
    link. I did do a test by in a blank page, created a link with these
    properties and it work correctly. Has anyone experienced this
    problem with existing pages? Thank you for any help.
    Here's the link to the page,
    http://www.loup.com/relicense/html/documents.html

    MichBrim wrote:
    > I just recently (last week) upgraded from DWMX to DW
    CS4. I've used it to
    > revise some information on a site. For the links, I have
    the page properties
    > set up for the link to be blue, the hover to be red, and
    visited to be blue.
    > The existing links work correctly, but the new links
    that I created (under the
    > heading Press Releases) in CS4 do not turn red when you
    hover over the link. I
    > did do a test by in a blank page, created a link with
    these properties and it
    > work correctly. Has anyone experienced this problem with
    existing pages? Thank
    > you for any help.
    >
    > Here's the link to the page,
    http://www.loup.com/relicense/html/documents.html
    >
    Hi,
    You have your links set up wrongly in your css styles - they
    must be in
    a certain order...
    link
    visited
    hover
    active
    Try that and see if it helps.
    chin chin
    Sinclair

  • Site Name Property Problem

    When I try to get the OracleConnection Site.Name property, it throws an exception.

    Please post this question to the ODP.NET forum...

Maybe you are looking for

  • Data acquisition and waveform graph plot

    Dear All My signal is out put of current transformer which is 2v dc. I succesfully configure usb 1208fs with labview8.2. Now I want to plot my input signal on the waveform graph in frequency vs amplitude(db). Can any one guide me how can i plot my da

  • Passing range table in a Subroutine

    I got 3 select options like this: Tables : VBRK. *SELECTION SCREEN GUI SELECT-OPTIONS: so_fkdat   FOR vbrk-fkdat OBLIGATORY, so_fkart   FOR vbrk-fkart, so_vbeln   FOR vbrk-vbeln. Now In the title of my alv I want to show what user hav input in these

  • Unable to unable to purchase

    Hi, to 29/10/2014 everything was fine now i cant purchase from app world via PayPal, ill try change payment option but no result.  i receive a message like that: Current Payment Option Selected: You are no longer able to purchase items with your curr

  • Want address pick list

    hi can u pls help me with this issue In sales order there is a ship to sold to party entered manually by the sales order clerk, however this is not reflected in the PICKING SLIP OR PICK LIST. The customer WANTS the ship to party to be printed out in

  • Invalid Page fault in IMM32.dll on Japanese Win 98

    Hi First of all, let me say that I'm new to internationalization fundamentals. My Java application uses i18n.jar for internationalization support(primarily Japanese) and everything seems to be fine on all OSes(Win2k,NT,98,Solaris etc), except that in