File records in Format Control

I am adding a new module to my system called PACR. In this module I am adding activity records. I was able to add activity records to Configuration Management doing a javascript comparison between $file and $file0 inside format control. However in the new module PACR the $file0 is full of null values. I checked "Save Copy" in format control but the record's($file0) properties are all null values.

Is there a place the $file0 is being assigned values in other module Format Controls or is there a location the value should be assigned like in other modules?

Parents
  • The $file0 file variable is generated in the format.cint RAD Application.

     

    Panel: set.up.record.save

     ---> This panel initializes the $file0 file variable

     

    Panel: set.up.record.save.1

     ---> This panel populates the $file0 file variable

     

    Troubleshooting this issue will require tracing the work-flow backwards to find the "empty" record. Generating a trace and/or using the RAD Debugger will help in this process. Basically, you will need to identify which "parent" RAD Application fails to pass a populated "original" record.

     

    Example work-flow when updating a contact:

    se.view.engine passes $L.file.save to se.base.method

    se.base.method passes $L.file.save to format.cupd

    format.cupd passes $db.supd to format.cint

    format.cint creates $file0 using $db.supd (technically named $db.srec within format.cint)

     

    RAD Debugger excerpts:
    |46| RAD: se.view.engine
    ...
    |46|          call.base.method.1
    |46| RAD: se.base.method
    ...
    |46|          save.fc
    |46| RAD: format.cupd
    |46|          start
    |46|          start.1
    |46|          init.file.variables
    |46| RAD: format.cint
    |46|          start
    |46|          set.up.file.variable
    |46|          set.up.file.variable.1
    |46|          set.up.record.calc
    |46|          decide.record.save
    |46|          set.up.record.save
    |46|          set.up.record.save.1

Reply
  • The $file0 file variable is generated in the format.cint RAD Application.

     

    Panel: set.up.record.save

     ---> This panel initializes the $file0 file variable

     

    Panel: set.up.record.save.1

     ---> This panel populates the $file0 file variable

     

    Troubleshooting this issue will require tracing the work-flow backwards to find the "empty" record. Generating a trace and/or using the RAD Debugger will help in this process. Basically, you will need to identify which "parent" RAD Application fails to pass a populated "original" record.

     

    Example work-flow when updating a contact:

    se.view.engine passes $L.file.save to se.base.method

    se.base.method passes $L.file.save to format.cupd

    format.cupd passes $db.supd to format.cint

    format.cint creates $file0 using $db.supd (technically named $db.srec within format.cint)

     

    RAD Debugger excerpts:
    |46| RAD: se.view.engine
    ...
    |46|          call.base.method.1
    |46| RAD: se.base.method
    ...
    |46|          save.fc
    |46| RAD: format.cupd
    |46|          start
    |46|          start.1
    |46|          init.file.variables
    |46| RAD: format.cint
    |46|          start
    |46|          set.up.file.variable
    |46|          set.up.file.variable.1
    |46|          set.up.record.calc
    |46|          decide.record.save
    |46|          set.up.record.save
    |46|          set.up.record.save.1

Children
No Data