column style after inline edit

(5 posts) (2 voices)

Tags:

No tags yet.

  1. ziuras, Member

    Hi
    I have report with editable columns. these columns have '%d' style. but after edit the style is mising:

    select 'dbr.colstyle', 'MinK', '%d';
    select 'dbr.editable', 'MinK', 'sp_DBR_XXX_Edit', 'ID=ID', 'Ps=Ps', 'Us=Us', 'Reg=Reg', 'Is=Sand', 'Login=Login', 'MinStyle=MinStyle', "options={'onsubmit':MinUzs_submit, 'callback':MinCallBack}";

    before edit i see '1500', after edit i see '1,500'

  2. ziuras, Member

    version: myDBR 5.3.1 (build 3822)

  3. myDBR Team, Key Master

    If you return the edited value from the sp_DBR_XXX_Edit-routine, myDBR will format the cell according to the formatting. If you do not return anything from the routine, myDBR will leave the cell as user entered it.

    --
    myDBR Team

  4. ziuras, Member

    may be this javascript do this job?
    select 'dbr.javascript', "
    function MinCallBack(value, settings)
    {
    var o = jQuery.parseJSON(value);
    col_value_set( this, this.cellIndex+1, 0, o.MinK );
    col_value_set( this, this.cellIndex+2, 0, o.UzsK );
    col_value_text( this, this.cellIndex+3, o.Is1 );
    } ";

    ?

  5. myDBR Team, Key Master

    The col_value_set-function will format the cell based on the user number format. If you have integer numbers that you do not to format (no thousand separators regardless of user preference), you can use the col_value_text instead.

    --
    myDBR Team


Reply

You must log in to post.