report redirects user to home page when using ipad

(2 posts) (2 voices)

Tags:

No tags yet.

  1. brycedcamp, Member

    The report has many editable fields which work great on a desktop, but when using an ipad the user is redirected to the home screen as soon as a change is made.

    The report uses javascript to modify styles when the editing stored procedure returns data. Could that be causing this issue?

    select 'dbr.javascript', "
    function my_callback(ret)
    {
    var o = jQuery.parseJSON(ret);
    cellvalue = o.value;
    cellstyle = o.style;
    if ( cellvalue < 1 ) {
    cellstyle='color:#FFFFFF;background:#FFFFFF';
    cellvalue=null;
    }
    cell_value_set( this, cellvalue );
    $(this).attr('style',cellstyle);
    }";

  2. myDBR Team, Key Master

    Hi,
    not likely. Even if there are couple of errors there, that should not result to redirect. You can use iPad simulator to see what causes the redirect.

    You could write the code bit differently:

    function my_callback(ret)
    {
    var o = jQuery.parseJSON(ret);
    if ( parseInt(o.value,10) < 1 ) {
    $(this).attr('style','color:#FFFFFF;background:#FFFFFF');
    $(this).text('');
    } else {
    cell_value_set( this, o.value );
    $(this).attr('style',cellstyle);
    }
    }";

    --
    myDBR Team


Reply

You must log in to post.