DotNet error?

TiwazTiwaz Member Posts: 98
Hi guys.
I keep getting this error when I try to call Update function in 485 Business Chart Buffer table.
Does anyone know how to fix this? :neutral:

Best Answer

  • TiwazTiwaz Member Posts: 98
    Answer ✓
    I am to inform you that I have found the solution for this problem.
    Or, at least, some kind of workaround.
    Problem was, obviously, that source table for my CardPart page (that holds the chart) was Item and not T485 Business Chart Buffer...

Answers

  • RockWithNAVRockWithNAV Member Posts: 1,139
    Did you write this on the top of your code

    IF ISNULL(DotNetVariable) THEN
    DotNetVariable := DotnetVariable.Constructor.

    Make the RunOnClient Property of the DotNetVariable to Yes.
  • TiwazTiwaz Member Posts: 98
    I already tried this with dotNetChartData AND with dotNetChartAddIn in Update function of Chart Buffer but that yielded no results... :(
  • HannesHolstHannesHolst Member Posts: 119
    Hi Tiwaz,

    Check the function "Initialize()" in T485.

  • TiwazTiwaz Member Posts: 98
    Hi Hannes,
    In debugger it breaks on Update function :(
  • HannesHolstHannesHolst Member Posts: 119
    The function "Initialize()" fills data in the variable "dotNetDataTable" which is used by the "update()"-function.

    jqjxmx7a7naa.png

    Following the advise from RockWithNAV and calling the Initialize()-function before the update-function solves your problem maybe (you don't get the error and you see data).

    If this does not work, trace where the function "update()" is in use and take the code as a blueprint for your modification.

    Cheers,
  • TiwazTiwaz Member Posts: 98
    Thank you Hannes and RockWithNAV.
    I tried to call Initialize before calling Update. I also tried to call initialize in function Update before the line on which it breaks.
    Both yielded no results...
    I am sooooo frustrated. No normal solutions work :(
  • TiwazTiwaz Member Posts: 98
    I also tried putting RunOnClient to Yes on dotNetDataTable, dotNetChartData, separately, then on both.
    Always errors...
  • TiwazTiwaz Member Posts: 98
    Answer ✓
    I am to inform you that I have found the solution for this problem.
    Or, at least, some kind of workaround.
    Problem was, obviously, that source table for my CardPart page (that holds the chart) was Item and not T485 Business Chart Buffer...
Sign In or Register to comment.