ViewLInk Accessor unpredictable, sometimes null, sometimes with value

When does a ViewLink Accessor gets initialized or assigned a value.
consider the following code:
setAnAttribute(Object value) {
   setAtttributeInternal(ATTRIBUTEINDEX, value);
   Row row = getViewLinkeAccessorView(); 
   if(row!= null)   //sometimes this one executes the if block, sometimes not.

hi anton.
Maybe this is also related to your issue:
"Difference Between View Link Attribute and View Link Instance in Data Model"
http://radio.weblogs.com/0118231/stories/2004/11/08/differenceBetweenViewLinkAttributeAndViewLinkInstanceInDataModel.html
success
Jan Vervecken

Similar Messages

  • ViewLink accessor erratic; sometimes returning with value, sometimes null

    When does a ViewLink Accessor gets initialized or assigned a value.
    consider the following code:
    setAnAttribute(Object value) {
       setAtttributeInternal(ATTRIBUTEINDEX, value);
       Row row = getViewLinkeAccessorView(); 
       if(row!= null)   //sometimes this one executes the if block, sometimes not.
    }

    When does a ViewLink Accessor gets initialized or assigned a value.
    consider the following code:
    setAnAttribute(Object value) {
       setAtttributeInternal(ATTRIBUTEINDEX, value);
       Row row = getViewLinkeAccessorView(); 
       if(row!= null)   //sometimes this one executes the if block, sometimes not.
    }

  • ViewLink Accessor returning null when VO has a BindParameter

    I have DeptView and EmpView that is link with a DempEmpViewLink. the link is two way so DeptView has a RowIterator Viewlink accessor and EmpView has a Row ViewLInk accessor.
    However inside the employeViewRow code, I always get a Null value when I access the Dept accessor.
    //inside Employee View Row.java
    Row row = this.getDeptView(); //returns null
    ...This happens when The DeptView has a bindvariable because I need to filter the DeptView so I have a where clause on the SQL statement. However, when I remove the whereclause and the bindvariable, the Dept ViewLInk accessor returns the correct row.
    regards,
    Anton

    Hi Chris,
    My scenario is actually a Invoice Header and Details screen.
    I have a HeaderView, DetailsView, and a HeaderDetailLink defined by a Composition Assoc. The headerView has a BindParameter on it. So on my page, I can view/navigate invoices and its details. but at the same time using the same viewobjects and same page, I need to be able to create and save a record on the header and details at the same time by just one Commit/Save. (Similar to a Forms application (header Form, and Details table).
    On pageload i execute a methodaction that inserts a row on the header and the detail at the same time. Then on the jsp page, I put some values on the header. Next i put a value on a fieldA on the detail. But when I put a value on fieldA, I need to compute the value of fieldB on the detail based on fieldA and a field of the Header row, fieldHeader.
    So to compute fieldB, I put a code on the settermethod of fieldA in the DetailRowImpl.java file:
    //detailRowImp.java, setFieldA()
    public void setFieldA(Number value) {
    setAttributeInternal(FIELDA, value);
    ... Row row = getHeaderRow(); //returns null
    Number fieldbValue = compute(value, row.getAttribute("FieldC")); //NullPointerException
    }What are your thoughts? any suggestions?
    regards,
    Anton

  • ViewLink accessor attribute NULL when VO has bind vars

    Hi! I noticed that a ViewLink accessor attribute returns a NullPointer when the ViewObject SQL has a bind variable. i have a data model with Dept and Employee ViewObjects that is connected via viewlink.
    I inserted a bind parameter :pDept and added on the whereclause "DeptNo = :pDept" to filter the employee returned based on Department. I then created a new Dept Row and a new employee on the same transaction (no commiting yet). When I got a reference to the viewLink accessor on the EmployeeViewRowImpl, i got a null reference when i tried to reference the viewLInk accessor for the department view:
    //code snippet inside EmployeeViewRowImpl
    void setAnAttribute(Object value) {
       Row row = getDeptView(); //returns null
    }I notice that when I removed the bind variables and the where clause, I get the correct ViewLink accessor.
    Is this expected behavior? if this is a bug, how can i get around this problem?

    hi anton.
    Maybe this is also related to your issue:
    "Difference Between View Link Attribute and View Link Instance in Data Model"
    http://radio.weblogs.com/0118231/stories/2004/11/08/differenceBetweenViewLinkAttributeAndViewLinkInstanceInDataModel.html
    success
    Jan Vervecken

  • ORA-01400 - not null column with default value and item with authorization

    I've searched - I would think someone has run into this. APEX 3.0.0.00.20 - I've created a simple form on a table. One of the column is a not null column with a default value. I have a select list on that item, but it has security on it - authorization scheme. So, it checks the user and if that user isn't of the right role, it will not even display that item. However, APEX appears to still send in the column in its sql! So, the default value is useless, it sends in null each time. Even if I set the default at the Item level, I get null. Argg. That's got to be a bug...
    In debug, I do not see the item listed at all. It's not used. That's fine - but why is it trying to insert the value? I would think it would leave it off??? I think because the item is associated with a database column. But, getting around this is ugly. Having to create a hidden item for each one, and then check to see if I need to take the list value... horrible. Any way to get around this???

    I should add - I guess I can always put my own custom process in to replace the DML. Just seems like a simple thing - if the value doesn't appear on the debug, isn't set with any default value... don't include it in the DML.

  • Union two tables with diffrent count of fields with null and float value

    Hello,
    i want to union two tables, first one with 3 fields and second one with 4 fields (diffrent count of fields).
    I can add null value at end of first select but it does not work with float values in second table. Value form second table is convert to integer.
    For example:
    select null v1 from sessions
    union
    select 0.05 v1 from sessions
    result is set of null and 0 value.
    As workaround i can type:
    select null+0.0 v1 from sessions
    union
    select 0.05 v1 from sessions
    or simple change select's order.
    Is any better/proper way to do this? Can I somehow set float field type in first select?
    Best regards,
    Lukasz.
    WIN XP, MAXDB 7.6.03

    Hi Lukasz,
    in a UNION statement the first statement defines the structure (number, names and types of fields) of the resultset.
    Therefore you have to define a FLOAT field in the first SELECT statement in order to avoid conversion to VARCHAR.
    Be aware that NULL and 0.0 are not the same thus NULL+0.0 does not equal NULL.
    In fact NULL cannot equal to any number or character value at all.
    BTW: you may want to use UNION ALL to avoid the search and removal of duplicates - looks like your datasets won't contain duplicates anyhow...
    Regards,
    Lars

  • IPhoto 08 only works SOMETIMES with iPhone....

    iPhoto 08 only works SOMETIMES with iPhone. I have been able to upload my photos from my iPhone SOMETIMES... Other times iPhoto doesn't recognize that the iPhone is plugged in. The IMPORT photos just NEVER showes up. How can I get it to CONSISTANTLY recognize my iPhone... what is wrong? Never had this problem with 06.

    ok, here's what i did to get iphoto to recognize my iphone.
    change the "connecting camera opens:" dialogue box to "image capture" (in the iphoto preferences "general" tab @ the bottom of the window)
    close the preferences & quit iphoto.
    quit itunes
    open iphoto & change the "connecting camera opens:" dialogue box back to "iphoto"
    close the preferences & quit iphoto
    plug in iphone.
    both itunes & iphoto will launch simultaneously.
    best of luck!
    --e--

  • Macbook air charges fine with the Thunderbolt screen connection but only sometimes with the 45 W chargers.

    My Macbook air charges fine with the Thunderbolt screen connection but only sometimes with the 45 W chargers. It seems to be the combination of the chargers and the computer. I was thinking whether the Thunderbolt screen has a larger power supply which easier activates the computer to actually receive the charge. It reminds me a bit of the Nokia Lumia 800 telephone, which when totally exhausted needs a strong charger to be activated again. I am as frustrated as most others.  I have got two chargers, and both of them sometimes work, other times not. Sometimes, they start working after a while. Is Apple meanwhile coming up with a solution or advice how to handle such situation?

    I just got my ATD and late 2011 MBP up and running. I've not tried running without the power adapter from the ATD plugged in, but I just tried and didn't have any problems with the display not waking. You may want to take your query to the ATD forum - https://discussions.apple.com/community/peripherals/thunderbolt_display - perhaps someone there has experienced a similar issue.
    Good luck,
    Clinton

  • Problem with viewLink accessor

    (ADF BC, JDeveloper 10.1.3 SU5)
    Hello,
    I have a master and a detail VO and a view link between them.
    Both VOs are entity based, master primary key is DBSequence.
    ViewLink cardinality is 1 to 0..1
    Let's say ViewLink accessor name is DetailLink.
    Master is inserted by ADF Faces table. Detail is inserted in code like below:
    Code in AppModuleImpl.java:
    ... get master row from master VO custom row set iterator ...
    detail = getDetail().createAndInitRow(master);
    ... init attributes ...
    getDetail().insertRow(detail)
    System.out.println("Master has detail: " + (getMaster().getDetailLink() != null));Even though the detail row has correctly set foreign key attribute, output of this code is not always "Master has detail: true". For example for newly started embedded OC4J it is "Master has detail: false".
    When I try to debug this code, getDetailLink() works correctly.
    What's wrong?
    Rado
    Message was edited by: RadoK
    (added omitted insertRow(detail))

    Strange is that getting detail entity from association accessor is successful.
    master.getMasterEntity().getDetailFromAssocAccessor() != null is true, but
    master.getDetailFromLinkAccessor() != null is false.
    The view link source and destination attributes are association from master detail association.
    Please help me find where the problem is.
    Rado

  • IiPad only works sometime with  hp-b210

    IPAD only works sometimes with my HP B210 printer

    Hi there sahmrh47,
    I would recommend taking a look at the troubleshooting steps found toward the bottom of the article below.
    AirPrint Basics
    http://support.apple.com/kb/HT4356
    -Griff W.

  • My iPad shows the Apple logo, sometimes with a frozen buffer logo as well. Nothing re-starts the machine!

    My iPad only shows the Apple logo, sometimes with a frozen buffer logo as well. I CANNOT turn the machine on by getting past this logo.

    Frozen or unresponsive iPad
    Resolve these most common issues:
        •    Display remains black or blank
        •    Touch screen not responding
        •    Application unexpectedly closes or freezes
    http://www.apple.com/support/ipad/assistant/ipad/
    iPad Frozen? How to Force Quit an App, Reset or Restart Your iPad
    http://ipadacademy.com/2010/11/ipad-frozen-how-to-force-quit-an-app-reset-or-res tart-your-ipad
    What to Do When Your iPad Won't Turn On
    http://ipad.about.com/od/iPad_Troubleshooting/ss/What-To-Do-When-Your-Ipad-Wo-No t-Turn-On.htm
    iOS: Not responding or does not turn on
    http://support.apple.com/kb/TS3281
    iPad: Basic troubleshooting
    http://support.apple.com/kb/TS3274
     Cheers, Tom

  • Mac has white screen, sometimes with apple in middle, sometimes not.  Besides bringing it in for hands on what can I do?

    On start I get a white screen, sometimes with apple in middle.  Besides bringing it in for a hand on what might I do?
    thanks

    The Gray Apple appears only when it has been loaded from the boot device. Its failure to appear suggests the Boot device may be the problem.

  • PowerMac G5 Dual 2GHz freezes any time, boots sometimes with one processor

    Since two weeks I experience freezes at different up-and-runnng time. It could happen at grey startup screen (after a while fan goes wild), could be after some minutes working in a full booted user environment.
    I run AHT several times, no error reported. When I took out all RAM except for Apple RAM, it still freezes at some time.
    Now, by random, my machine starts sometime with only one processor and is stable for hours (only the fan runs higher and cpu load is most of the time near 100 percent). Activity shows one bar only, System Info says: Number of CPUs=1. I have no idea which processor runs and which "sleeps" deadly. iStat tells only about CPU A as having a temperature, the fans of CPU A run higher, but the fans of CPU B run also on a lower level.
    The "U3 Heatsink" reads 65-70 degree Celsius. Is that (too) high?
    Only once I got a kernel panic during verbose startup. It read:
    "System failure: cpu=1; code =00000001 (corrupt stack)
    unalined fram address: 0x00000001"
    I am tempted to shut down one CPU with Open Firmware command, but will it be the defect one? At least the machine is doing something regular then, but is slow...
    Any help is much welcome!
    Yours, Whoopy

    My PowerMac G5 Dual 2.0 also has this problem.
    It all started one sad afternoon a month or so ago. I noticed that my computer was on and the fans were on full speed. As soon as I moved the mouse to shut it down, I got the wheel of death!
    I had no choice but to do a force shutdown.
    The next day, I turn my computer on and it just stayed on the gray screen with the dark gray apple, and no spinning thingy.
    So once again, I had to force shutdown.
    Pressing the 'Option' key did gave me the screen where one can select where to boot from; the main HD, booting CD, etc. but none of the worked.
    When I chose to boot from my internal HD or from the restore CD it would just get stuck on the gray screen with the apple logo.
    I pressed the PMU button = no change
    I did a PRAM reset = it brought my G5 to life but then a few minutes later it froze and history repeated itself.
    Did a PRAM reset again and this time didn't work.
    Tried booting from my PowerBook G4 HD via firewire = frozen gray screen
    When I pressed the 'T', i get the FireWire logo and I'm able to boot my G5's HD using my PowerBook G4. But when I put my G4 on firewire mode and try to boot my G5 by selecting the OS of the G4, I still get the frozen screen, so the problem is not with the HD.
    One time I was able to boot my G5 from the 'Restoration CD' and I used the Utilities to Fix permisions, and repair the HD but still the computer would freeze and same old story.
    Since I got this problem, It has work normal only 3 occasions but no longer than an hour until the fans go crazy and freezes.
    I tried different memory sticks and no improvement.
    My AppleCare expired on May, and my G5 went down 2 or 3 months after that.
    This feels part of an strategy called "Get a(nother) Mac". Where comps are design to last just a little after AppleCare expires and then BOOM! no choice but to spend some serious cash on fixing it or use that money plus more to get one of the resent mac which have had some changes since one bought the mac that just went to apple heaven.
    Anyways, I feel that the problem will be solved by replacing the two processors, heatsinks, or whatever they called it.
    I took apart my G5 today and I'm not sure but it seems that the heatsinks might use some kind of gas to cools the CPUs or Chips and I think that gas is over.
    Has anyone swap the heatsink units and noticed any difference?
    Here's of the heatsink for the PPC G5 2.0
    http://img186.imageshack.us/img186/2642/g5heatsinksw5.jpg

  • Update Nulls With Value from Another Row

    Good Morning,
    I word for a car manufacturer. I am pulling an excel spreadsheet into SQL 2012.The spreadsheet lists one line for each dealer, each carline. So if there are 6 carlines and 65 dealers there will be 390 lines. when the spreadsheet gets to me it looks like
    this:
    Dealer          
    Carline         District         Data         Data         Data
    East Side Craworld Model1
    1 0
    0
    Model2
    1 0 0
    Model3
    1 0
    0 0
    So the Dealer is only listed once. When I pull this into SQL the blank lines are nulls and I want them to be the Dealer name in there. How can I accomplish this with an update.
    Just one thing more. When I programmed in access, I would loop through a table and set a variaiable =Dealer name and not change the variable until the next not null row and then make that the new variable all the while making nulls=the variable. Is there
    a way to accomplish that here.

    The only issue is this file will eventually be a feed and an ftp agent will grab the feed place it somewhere and and there will be a stored package to import it.
    Can I do an update on a null field with the field from the previous record, or am I dealing witht he ordering thing again. I found this code. Will it work?
    select Date
    , GroupId
    , case
    when Comment is not null then Comment
    else
    select Comment
    from YourTable yt2
    where yt1.GroupId = yt2.GroupId
    and yt2.Comment is not null
    and yt2.Date < yt1.Date
    and not exists
    select *
    from YourTable yt3
    where yt1.GroupId = yt2.GroupId
    and yt2.Comment is not null
    and yt3.Date < yt2.Date and yt2.Date < yt1.Date
    ) end as Comment
    from YourTable yt1

  • Avoiding null and duplicate values using model clause

    Hi,
    I am trying to use model clause to get comma seperated list of data : following is the scenario:
    testuser>select * from test1;
    ID VALUE
    1 Value1
    2 Value2
    3 Value3
    4 Value4
    5 Value4
    6
    7 value5
    8
    8 rows selected.
    the query I have is:
    testuser>with src as (
    2 select distinct id,value
    3 from test1
    4 ),
    5 t as (
    6 select distinct substr(value,2) value
    7 from src
    8 model
    9 ignore nav
    10 dimension by (id)
    11 measures (cast(value as varchar2(100)) value)
    12 rules
    13 (
    14 value[any] order by id =
    15 value[cv()-1] || ',' || value[cv()]
    16 )
    17 )
    18 select max(value) oneline
    19 from t;
    ONELINE
    Value1,Value2,Value3,Value4,Value4,,value5,
    what I find is that this query has duplicate value and null (',,') coming in as data has null and duplicate value. Is there a way i can avoid the null and the duplicate values in the query output?
    thanks,
    Edited by: orausern on Feb 19, 2010 5:05 AM

    Hi,
    Try this code.
    with
    t as ( select substr(value,2)value,ind
            from test1
            model
            ignore nav
            dimension by (id)
            measures (cast(value as varchar2(100)) value, 0 ind)
            rules
            ( ind[any]=  instr(value[cv()-1],value[cv()]),
            value[any] order by id = value[cv()-1] || CASE WHEN value[cv()] IS NOT NULL
                                               and ind[cv()]=0     THEN ',' || value[cv()] END      
    select max(value) oneline
    from t;
    SQL> select * from test1;
            ID VALUE
             1 Value1
             2 Value2
             3 Value3
             4 Value4
             5 Value4
             6
             7 value5
             8
    8 ligne(s) sélectionnée(s).
    SQL> with
      2   t as ( select substr(value,2)value,ind
      3          from test1
      4          model
      5          ignore nav
      6          dimension by (id)
      7          measures (cast(value as varchar2(100)) value, 0 ind)
      8          rules
      9          ( ind[any]=  instr(value[cv()-1],value[cv()]),
    10          value[any] order by id = value[cv()-1] || CASE WHEN value[cv()] IS NOT NULL
    11                                             and ind[cv()]=0     THEN ',' || value[cv()] END 
    12          )
    13        )
    14   select max(value) oneline
    15   from t;
    ONELINE
    Value1,Value2,Value3,Value4,value5
    SQL>

Maybe you are looking for

  • Cannot view SMS Message Conversation History

    Hello, I have a Blackberry Curve 8310.  When I first got the phone, my SMS text message conversation history would be saved automatically.  Basically, I could look at any message and see all the prior messages below it (Messages that I sent and recei

  • To retrieve the PRT document (a PDF file) and insert the doc in PM order

    Hello guys, I have a challenging task in from printing as follows, By using TC: IW3D we get print preview of PM Order Set (PM Print Program: YIPRJT01), currently the PRT document number prints in the PM Order. Now we have to insert the PRT documents

  • Error in compilation - Bug in the Oracle Java Compiler ? (10.1.3)

    I've the following situation : I've a class wich extends ViewObjectImpl,named ClViewObjectImpl, and another class, named RbViewObjectImpl wich extends ClViewObjectImpl. My classes have only a constructor with no parameters . Compiling with standard O

  • How to copy string to clipboard w/o keystroke?

    I want to copy short strings into another program. Currently I write to a String Indicator, highlight with the mouse, then copy. Is there a way to write the string directly to the OS's clipboard?

  • Api for call blocking in j2me

    hi, any api for call blockin in j2me? Can we use jsr-253 now for this task?