[bc4j] Urgent jbutton binding problem

Hi,
I have a working application with a few panels, and a few viewobjects, viewlinks, etc. I can use the navigator to navigate through the records, etc, everything works fine.
But when I add a jbutton to the panel, with an action binding for the view object ('insert new record' or 'next'), then when starting up the application, the view object begins to spill, all records seem to be loaded and spilled to the spill-table.
If I remove the model form the jbutton and re-run, everything works fine again. What could cause this? All other binded controls (navigationbar, several jtextfields, and even a jtree) work fine, but the jbutton causes spills.
And not even when I click it, but during startup of the app!
Any idea?
Greetings,
Ivo

Bug#2772798 filed after reproducing using your testcase. Thanks.
Shailesh got back to me with this analysis:
No bindings should force a range size of -1 by default except for Lov Bindings on Combo and List Boxes where all the data is needed on the client side control.
ButtonlActionBinding's create method is setting the rangesize of the iterator to -1 leading to all rows being fetched. The workaround is to set the range size on the iterator in setPanelBinding() method after jbInit() to a desired size.
Here's a line I added to Ivo's setPanelBinding() method of his PanelFootballView1.java class...
jbInit();
panelBinding.findIterBinding("FootballViewIter1").getRowSetIterator().setRangeSize(1);

Similar Messages

  • JButton.setBackground() Problem

    Hi All,
    When i apply the setBackground() Method to a JButton to set its Background, i face i Problem :
    Under Mac Os : The JButton DOSE NOT change its color,
    when i take my code to my other computer under Windows : OK, the JButton change...
    i am wondering ....
    1) Why under my Mac OS i face this problem...
    2) and Why i get two different results from a same code ??? Java is not Portable?? and independant of the OS?? or it is the swing that makes the problem???
    My code is so simple :
    MyJButton.setBackground(new Color(255,100,100));
    Thanks to any help...

    ellias2007 wrote:
    Sorry because it is the first time for me in this forum....
    thanks for any help...
    Sorry againMost of us don't like disjointed discussions or repeating effort for a problem that has already been solved elsewhere. Thanks for your reply. A link to one discussion: [http://www.java-forums.org/awt-swing/25986-jbutton-setbackground-problem.html]
    If you have cross-posts elsewhere, please post links in all of them to each other or to one central location.

  • BC4J Bind Problem

    Hello,
    I am working with BC4J view objects
    I created the view object using the query with the bind variables
    select deptno from emp where salary = :1 and empno>= :2 and someothercolumn = :1
    I set the bind variables like
    viewObject.setWhereClauseParam(0, 10000);
    viewObject.setWhereClauseParam(1, 10);
    viewObject.executeQuery();
    The view executed with out the problem and gave the result.
    Now if I create the view with the query
    select deptno from emp where salary = :1 and someothercolumn = :1 and empno>= :2
    ( The replaced the columns )
    I set the bind variables like
    viewObject.setWhereClauseParam(0, 10000);
    viewObject.setWhereClauseParam(1, 10);
    viewObject.executeQuery();
    When i execute the query, it throws an expection
    "java.sql.SQLException: ORA-01008: not all variables bound"
    Please let me know what should be done to correct the problem
    Thanks in Advance
    Senthil

    You're hitting an Oracle JDBC Driver bug regarding repeating the same bind variable name in the SQL statement.
    As a workaround, instead of:
    select deptno from emp where salary = :1 and someothercolumn = :1 and empno>= :2 do this instead:
    select deptno from emp where salary = :1 and someothercolumn = :2 and empno>= :3 and write code like this:
    viewObject.setWhereClauseParam(0, 10000);
    viewObject.setWhereClauseParam(0, 10000);
    viewObject.setWhereClauseParam(1, 10); That is, avoid repeating the same bind variable name in the SQL statement.

  • RE: Workflow binding problem in Production system(urgent)

    Hi Experts,
    Currently we transported our workflows to production server. When one of the user tested our workflow it failed. On Analysis I could find that the data are not passed from method to task container  but method is working fine separately. Even I tried executing t-code 'SWU_OBUF' , but still not working.
    Pls let me know of the solution .
    Thanks,
    Bharath

    Check for linkages. Is the binding activated betwwen workflow to task container.
    Check whether values appear in task container or not.
    Then check for binding between task & method container. Is there any event linked with the task. Is the event linkage is activated.
    The problem might be resolved if all the linkages are correct.

  • Urgent Sql Query Problem - -Very Urgent

    Hi Guys,
    I need a urgent solution for a problem.I am
    using the following query
    select ename from emp where deptno =10
    Now I will declare a bind variable and if user passes 'A'
    then the query will run as it is and if he passes B
    then it should run the above query with this additional clause -> birthdate - hiredate >15.
    Please can any one help its very urgent

    Assuming that you have a birthdate column in your emp table, the following will do what you are asking for:
    VARIABLE bind_var VARCHAR2(1)
    EXECUTE :bind_var := '&bind_variable'
    SELECT ename FROM
    (SELECT 'A' AS selection, ename FROM emp WHERE deptno = 10
    UNION ALL
    SELECT 'B' AS selection, ename FROM emp WHERE deptno = 10 AND birthdate - hiredate > 15)
    WHERE selection = :bind_var
    However, the clause "birthdate - hiredate > 15" will only retrieve rows for employees who were born more than 15 days after they were hired. I doubt that this is what you really want, since this is impossible.

  • BC4J bug with "bind variables" JBO-27122 ORA-01008

    I think we are found a BUG using BC4J with bind variables in a view object.
    If the bind variable appear in the WHERE condition two or more times at
    the beginning of the query the above error occur.
    oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement:
    SELECT Emp.EMPNO,Emp.ENAME,Emp.JOB,Emp.MGR,Emp.HIREDATE,Emp.SAL,Emp.COMM, Emp.DEPTNO
    FROM SCOTT.EMP Emp
    WHERE :1 <=10000 and :1 <= sal and :2=20
    java.sql.SQLException: ORA-01008: not all variables bound
    Otherwise if bind variable apper two or more times, but not together
    like this sample:
    WHERE :1 <=10000 and :2=20 and :1 <= sal
    the error not occur.
    We prove this with:
    JDeveloper 9.0.5.2 (build 1618)Business Components Version 9.0.5.16.0
    JDeveloper 9.0.5.0 (build 1375)Business Components Version 9.0.5.13.52
    I looking for a patch! or acceptable workaround.
    Tx for your help!
    diego.
    /* the cliente app */
    ApplicationModule am = Configuration.createRootApplicationModule("business_tier.AppModule","AppModuleLocal");
    ViewObject vo = am.findViewObject("EmpView");
    vo.setWhereClauseParam(0,"100");
    vo.setWhereClauseParam(1,"20");
    Row emp = vo.first();

    This is a known bug (1326006). The workaround is to use:
    vo.setWhereClauseParam(0,"100");
    vo.setWhereClauseParam(1,"20");
    vo.setWhereClauseParam(2,"20");
    Hope this helps,
    Lynn
    Java Tools Team

  • Read only inputText binding problem

    Hi all
    I have a h:inputText like below
    <h:inputText readonly="true" id="txtStudentId" value="#{student.id}"/>then using a Java script I change the value of this textbox.
    But when retrieve the value from backbean It's not changed. The problem is associated with read only attribute.
    When it's not read only it works.
    Can some one explain this?

    Thank You BALUSC, Your solution worked!
    Nice idea
    JSP
    <script>
                            function changeTest()
                                document.getElementById("form1:textField1").value = "text Changed";
                                document.getElementById("form1:hidden1").value = "text Changed";
                                return false;
    </script>
    <webuijsf:form id="form1">
                            <h:inputText id="textField1" readonly="true" />
                            <h:inputHidden binding="#{ReadOnly_inputField.hiddenField}" id="hidden1" />
                            <h:commandButton id="button1" value="Channge Value" onclick="return changeTest();"/>
                            <h:commandButton action="#{ReadOnly_inputField.button2_action}" id="button2"value="Check Value"/>
                        </webuijsf:form>ReadOnly_inputField.java
    private HtmlInputHidden hiddenField;
        public HtmlInputHidden getHiddenField()
            return hiddenField;
        public void setHiddenField(HtmlInputHidden hiddenField)
            this.hiddenField = hiddenField;
        public String button2_action()
            System.out.println("This is the value : "+ hiddenField.getValue());
            return null;
        }And your Blog. It's really really helpful.

  • 10g Signal Handlers and Dynamic Binding Problems on Mac OS X

    I have the following env vars set up, and it seems the client libs show a deadl\
    ock behavior post installation. SqlPlus exhibits a similar problem with 10g cli\
    ent libs on the Mac, since it simply hangs for 20 secs before returning the pro\
    mpt. I have G4 10.3.4 Mac, and 3.3 (1640) gcc, and still haunted by this probl\
    em...
    ORACLE_HOME=/Users/Oracle/10g/orahome
    ORACLE=ORACLE_HOME/bin
    ORACLE_BASE=/Users/Oracle/10g
    DYLD_LIBRARY_PATH=/Users/Oracle/10g/orahome/lib
    a) ktrace sqlplus user/pass@db
    b) kdump -R | grep sigaction gives:
    885 sqlplus 5.877734 CALL sigaction(0x2,0xbffff500,0xbffff570)
    885 sqlplus 0.001252 RET sigaction 0
    885 sqlplus 0.002032 CALL sigaction(0xd,0xbfff90f0,0xbfff9160)
    885 sqlplus 0.001831 RET sigaction 0
    885 sqlplus 0.001293 CALL sigaction(0x12,0xbfffb6e0,0xbfffb750)
    885 sqlplus 0.001234 RET sigaction 0
    885 sqlplus 0.001551 CALL sigaction(0x12,0xbfffbda0,0xbfffbe10)
    885 sqlplus 0.001401 RET sigaction 0
    885 sqlplus 0.001331 CALL sigaction(0x2,0xbfffd090,0xbfffd100)
    885 sqlplus 0.001333 RET sigaction 0
    This shows a 5.9 sec delay for the first sigaction, and a full response is received some long 20 secs later on the prompt.
    Some feedback from engineering regarding this issue since the 9i release has been:
    "This is a known problem with signal handlers and the lazy binding we have on Mac OS X. A small change to how Oracle library's signal
    handler is installed using _signal_nobind(3) and
    _dyld_lookup_and_bind_fully(3) could help to solve this problem.
    The problem that we are trying to avoid is a possible dead lock from
    code that could be called in a signal handler when the thread that
    gets the signal is in the middle of lazy binding a symbol. So when a
    signal handlers installed the default action is to cause it to be
    bound fully. This is made very expensive by the mismatch of the
    interfaces to signal(3) and segvec(2) like routines which are passed
    an address and the dynamic linker that wants a global symbol name. So the end result is to call the routine _dyld_bind_fully_image_containing_address(3) with the address of the signal handler to be bound. Which binds everything in the image (in this case the Oracle shared library).
    We have had problems like this before. For example: [This is what is
    done in usleep(3)]
    usleep()
    /* code removed for this example */
    setvec(vec, sleepx);
    #ifdef __DYNAMIC__
    _dyld_lookup_and_bind_fully("_usleep", NULL, NULL);
    (void) _sigvec_nobind(SIGALRM, &vec, &ovec);
    #else
    (void) sigvec(SIGALRM, &vec, &ovec);
    #endif
    static void sleepx(int unused)
    ringring = 1;
    The use of _sigvec_nobind(2) (or _signal_nobind(3) ) and the use of
    _dyld_lookup_and_bind_fully(3) will cause just the needed symbols used by the signal handler. "
    It seems this issue hasn't been resolved in the most recent 10g client release.Can anyone shed some light one this issue?
    For better demonstration, here is a series of steps we took here:
    sigaction.c - C file produced by "proc sigaction.pc"
    sigaction.pc - ProC source file
    gcc_sig* - Shell script to compile sigaction.c
    ktrace.sigtest - raw ktrace output from running sigtest
    ktrace.sqlplus - raw ktrace output from running sqlplus
    kdump.sqlplus - output of kdump -R on ktrace.sqlplus
    kdump.sigtest - output of kdump -R on ktrace.sigtest
    sigaction.lis - auxiliary file produced by proc
    1. sigaction.pc:
    #include <stdio.h>
    #include <stdlib.h>
    #include "/Users/oracle/10g/orahome/precomp/public/sqlca.h"
    int main(int argc, char **argv) {
    char user[30], passwd[30], db[40];
    char con_str[100], date[10], *icp;
    strcpy(user, "XXXXXXXX");
    strcpy(passwd, "XXXXXXXX");
    strcpy(db, "db_name");
    sprintf(con_str,"%s/%s@%s",user,passwd,db);
    EXEC SQL CONNECT :con_str;
    EXEC SQL SELECT SYSDATE INTO :date FROM DUAL;
    printf("SYSTEM DATE = %s\n",date);
    EXEC SQL COMMIT RELEASE;
    2. gcc_sig:
    #!/bin/sh
    CFLAGS="-I$ORACLE_HOME/precomp/public -I/usr/include"
    CFLAGS="$CFLAGS -I$ORACLE_HOME/lib -L$ORACLE_HOME/lib"
    ORALIBS="-L$ORACLE_HOME/lib -lclntsh $ORACLE_HOME/lib/nautab.o $ORACLE_HOME/lib/naeet.o"
    CC="gcc -g"
    PROG=$1
    OUTPUT=$2
    $CC $CFLAGS $PROG -o $OUTPUT $ORALIBS
    3. Generate the rest of the output files for your viewing of the results based on the commands provided above.
    Thanks!

    It's a delay, not a deadlock, that originatesfrom the way Oracle
    libraries handle dymaic bindings.to "dynamic" bindings. Maybe prebinding could help ?
    export DYLD_PREBIND_DEBUG=1ronr@[email protected]:/Users/ronr
    sqlplus "/ as sysdba"dyld: sqlplus: prebinding disabled because library: /Users/oracle/product/server/10.1/lib/libsqlplus.dylib got slid
    dyld: in map_image() determined the system shared regions ARE used
    dyld: 2 two-level prebound libraries used out of 5
    Ronald
    http://homepage.mac.com/ik_zelf/oracle/

  • Urgent!!  Problems muxing .m2v files and audio!! MPEG Streamclip/Compressor

    Hello!
    I am under an urgent deadline to upload a short 6 min documentary clip for a client to review for screening this week. The footage was shot in 1080/60i HDV.
    Usually, I find the best quality and fastest way to do this is to export directly from my FCP sequence using the '150 min Best Quality' DVD settings in compressor to get an .m2v video file and .ac3 audio file. Then I open the .m2v files in MPEG Streamclip which links it with my .ac3 file, then do 'Export MPEG with MP-2 audio". This gives me a single, muxed file that I can then upload to YouTube or Vimeo.
    However, with this project, when I open up my .m2v file in MPEG Streamclip, it's recognizing the .ac3 file and I can see the info for it in the MPEG Streamclip window, but when I play the file in MPEG Streamclip or mux it, I don't hear any audio. Furthermore, after about 5 seconds into the clip, the playhead will continue moving, but the video will freeze, then maybe pick up again later. The .m2v video will play back smoothly in VLC player or Quicktime player, but not in MPEG Streamclip.
    I've tried exporting different little sections of the timeline to see if maybe I had some corrupted footage or whatnot. I even exported a small clip from an older HDV project to test. But no matter where I export from, I am running into the same problem. I can bring the .m2v file and .ac3 file into DVD Studio Pro and burn a DVD with no problem, but I can't mux them. If I build the DVD file in DVD SP and try to open the .VOB file with MPEG Streamclip, I get the same problem. I even tried using a different software to mux (ffmpegX) but to no avail. When I try with ffmpegX, it either tells me I'm dropping frames, or if it works and it muxes it, when I open the MPEG file, it'll stutter at about 5 seconds in as well and I can't hear any audio, even though there is supposed to be audio in the muxed file.
    I think I might have updated my Quicktime a few days ago with the system update, and maybe updated a few other things, so I don't know if this has any bearing on the problems I'm running into. But I was able just a few days ago to export HDV 1080/60i using this workflow without any problems.
    I realize I have other export options, but this always seems to me to be the best quality and fastest way of doing it vs. encoding an H.264 which, on my machine is RIDICULOUSLY slow...I need to be uploading multiple versions of the cut to the client, and really need help! Thanks so much in advance!
    J

    what you want is an m2v program file. Export a reference copy from FCP (uncheck Make Movie Self Contained") That's very fast. Bring it into Compressor. In the settings panel find the MPEG-2 settings folder. Select Program Stream. Adjust to your liking and run. The audio and video will already be "muxed" when it's done and using compressor 3 you can set it to upload to YouTube, Mobile or similar sites.

  • Binding Problem in web dynpro ABAP

    Hi
    I have problem in table binding. I have created node and added attributes from ztable. The node is binded with the view table. Now my requirement is one field should be drop down in table and it should be binded with one attribute but that binded attribute is indifferent table. Is it possible? .. I have tried this but dump occured. Please guide me to get this.
    Thanks
    Indiranjithn

    nope, i don't have an ebook for WD.. but if you explain your issue, someone here may be able to help.

  • Flashbuilder 4 Beta 2 / Data binding problems

    Hello,
    i´m trying the first time FB 4 beta and i have a problem with the data services.
    I have cerated a cfc on coldfusion 8 returning data from an SQL-Server. The service is imported well and also the test works an returns the right data.
    But when i bind this service to any Control like a data grid, i get an error by compiling:
    Error 1180 datagrid_creationCompleteHandler not defined
    The code:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
          xmlns:s="library://ns.adobe.com/flex/spark"
          xmlns:mx="library://ns.adobe.com/flex/halo" minWidth="1024" minHeight="768" xmlns:st_gruppeservice="services.st_gruppeservice.*">
    <fx:Script>
      <![CDATA[
       import mx.controls.Alert;
      ]]>
    </fx:Script>
    <fx:Declarations>
      <s:CallResponder id="getAllST_GRUPPEResult"/>
      <st_gruppeservice:ST_GRUPPEService id="sT_GRUPPEService" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
      <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <mx:DataGrid x="82" y="145" id="dataGrid" creationComplete="dataGrid_creationCompleteHandler(event)" dataProvider="{getAllST_GRUPPEResult.lastResult}">
      <mx:columns>
       <mx:DataGridColumn headerText="NAME" dataField="NAME"/>
       <mx:DataGridColumn headerText="INFO" dataField="INFO"/>
      </mx:columns>
    </mx:DataGrid>
    </s:Application>
    I think, i have build the project the same way as in adobe labs described. And also, the test works so the service is configured right.
    Any Idea?
    Regards

    Sunil,
    attached the two log files.
    If i remove the CDATA-Block, i get also the error 'Property alert not found'.
    Additional Infos:
    Environment: German
    Client system: Windows 7
    Server: Coldfusion 8 on IIS (Windows 2003)
    Regards
    Thomas

  • Very Urgent?Facing Problems With Labels

    Hi All,
    It's Very Urgent,In My VC Application
    Label Have More Than 15 Characters
    I PUT Label Layout  To Long Label.
    My Label Name  online assignement date
    But Even Put Long Label, online ***.......
    Please Resolve The Problem ASAP.
    Thanks
    SubbaRao Chinta

    Hi Subbu,
    I told u already its an Know issue with Flex compiler ,Even u set the label to long label it will show u only short label.
    This issue is fixed with Flex2 compiler.
    Use Flex2 compiler for ur application then it will dispaly the total label u want display.
    Regards,
    Govindu

  • Lookup function issue or specific cell data binding problem

    I  have a dataset which has datatable having 2 columns i.e
    Table( Id string,Value string)
    Every single record in the datatable represents an answer to particular question, Id column being question identifier and Value column  being an answer and every question has answer being stored for 7 days.
    Now i have designed a report which is in the form of grid like
                         Day1 Answer, Day2 Answer, Day3 Answer............................Day7 Answer
    Question 1 
    Question 2
    .Question 40
    I tried using lookup function in ssrs reporting service to bind every single cell in the report using data from dataset like
    = Lookup("question_identifier",QuestionId.Value,AnswerValue.Value,"mydataset");
    The report is working absolutely fine in the report designer as expected but when i take it to the ASP.NET website where i have to generate it, it never shows up and i get report couldn't be found and make sure you have published the report kind of errors.
    I figured that this is the problem with lookup function because as soon as i removed all lookup function expressions in the report , the report started to show up but without data.
    Please let me know if there is another way to go around this problem or fix this issue.
    Thanks,
    BR,

    Hi Jolly,
    I don't think we need lookup function for this. We have only one dataset, the report can be easily created by simply modifying the query of the dataset and place those fields in the tablix report. Refer below example,
    create table reporttable(id int, value varchar(200))
    insert into reporttable values(1,'abc')
    insert into reporttable values(1,'abc1')
    insert into reporttable values(1,'abc2')
    insert into reporttable values(1,'abc3')
    insert into reporttable values(1,'abc4')
    insert into reporttable values(2,'abc')
    insert into reporttable values(2,'abc1')
    insert into reporttable values(2,'abc2')
    insert into reporttable values(2,'abc3')
    insert into reporttable values(2,'abc4')
    insert into reporttable values(3,'abc')
    insert into reporttable values(3,'abc1')
    insert into reporttable values(3,'abc2')
    insert into reporttable values(3,'abc3')
    insert into reporttable values(3,'abc4')
    select id as [Question],'Day ' + cast(row_number() over (partition by id order by id) as varchar) + ' Answer' as AnsCol
    from reporttable
    Regards, RSingh

  • Dynamic region table with binding problem

    Hi. I'm using jdev 11.1.1.3 and ADF full stack.
    My app uses single page approach with ADF libraries and a dynamic region to show content. Main page includes a menu bar which is created on session startup and is used to load task flows from libraries.
    I have a class to provide some table functionality like CRUD, multi-row delete, etc and I need to reuse with every table included in libraries.
    To do this, in main web app I have a managed bean to hold table binding and to provide this common functions to all fragments if needed.
    I think it must be in request scope as fragment changes.
    Here's the problem: when I navigate to a fragment which contains a table with binding, first time goes well,
    but next time table, when fragment changes,new table displays without header or without data.
    If I go to another fragment without binding and return to a fragment with problem, it displays well. With fragments without table binding, it works OK.
    I've tried changing scope of this 'general' managed bean, but same thing. If I put a bean for each fragment, it works OK.
    So, how can I 'share' this managed bean through every table? Any suggestions? is it possible?
    Please, help me ....
    Thanks,
    DEMR.

    I am seeing a similar problem in my app. I have a main menu that drives a dynamic region. If the task flow that gets displayed in the dynamic region also contains a dynamic region, when the inner dynamic region is refreshed to point to a second task flow, the page does not render correctly. The errors we have seen include data in tables not being displayed in some cases, and PPR errors in other cases. In both cases, if the inner dynamic region is replaced (by a single bounded task flow with navigation logic in a template, for example) the errors go away. There appears to be issues involved with including a dynamic region within a dynamic region.
    Have you made any progress on solving your issue?

  • Matrix Empty row Binding Problem

    Hi ,
    i created one matrix using screen painter.. all my columns are binded
    with user defined fields.(Doc Rows Table). if my total row count is 5.
    and i deleted 2 rows using rightclick deleterow event. after adding if i see the same document  it display the 2 empty rows and 3 rows with my details.. actually its showing that deleted row also.my UDT also having empty row details..
    how to resolve this?
    Regards,
    Ganesh K

    Hi Geetha,
    i think you misunderstood my scenario. while adding no empty rows
    are displayed, even if  i deleted some added row details.After adding,
    while retriving the same document  the problem occurs.if am not clear let me know..
    As you told, beforeAction = false of Add will be new form with Add mode.so not possible to check that old matrix. otherwise we can delete the empty details from database using query..in beforeaction false pval.actionsucess true part...
    regards,
    Ganesh k.

Maybe you are looking for