Jump to content

clement

Members
  • Posts

    29
  • Joined

  • Last visited

Posts posted by clement

  1. Hi,

     

    I create one panel at runtime, and add the below extEvent to the panel.

    However, the page shows blank (no error).

     

              vOrderPanel.ClientEvents.ExtEvents.Values['afterrender']:=' function afterrender (sender, eOpts)' +
              '{Sender.setBodyStyle(' + QuotedStr ('border-radius') + ',' + QuotedStr('20px') + ');}';

     

    can I know how to add the extEvent to the panel at RunTime?

     

    Thank You.

  2. Are you use calcfield?

     

    No.

    I write the below code in OnChange of the ColA & ColB (clientdataset).

    ColC.Value := ColA.Value * ColB.Value;

     

    The "ColC.Value" will not update in the grid.

  3. Hi,

     

    I use one uniDBGrid and clientdateset to allow user to enter value in ColA & ColB. The ColC is the result (ColA x ColB).

    Formula: ColC = ColA * ColB

     

    ColA  |  ColB  | ColC

    1           1.5      1.5

    2           3         6

    2           2.5      5
     

    The DBGrid cannot immediately show the result/value of ColC after the value of ColA & ColB is entered.

    Can I know how to achieve it?

     

    Thank You.

     

  4. Hi,

     

    I use one clientdataset to link to the DBGrid, but it shows the below message when I press the "Refresh" button in DBnavigator.

     

    1) "cdsDeliverDtl: Must apply updates before refreshing data."

     

    2) "cdsUserCart: Missing data provider or data packet."

     

    Anyone knows how to solve it?

     

    Thank You.

     

     

  5. Thanks for your reply.

     

     

    ColA is CheckBox

                 ColA  |  ColB
    Row1    True     Success     (Row1 - ColA ReadOnly Is False)
    Row2    False     Fail           (Row2 - ColA ReadOnly Is True)
    Row3    False    Fail            (Row3 - ColA ReadOnly Is True)
    Row4    False    Success    (Row4 - ColA ReadOnly Is False)

    It means user can only edit the ColA of Row1 & Row4.

     

     

    function beforeedit(editor, context, eOpts)
    {
        var me=context;
        if ((me.column.dataIndex == "0") && (me.record.data[1] != "Success")) {
            return false;
        }
    }

     

    I use the above code, but Row 2 & Row 3 (ColA) still can be edited. Anything is wrong?

  6. Is it possible to set one cell to ReadOnly = True/False?

     

    for example,

    Row 1 -> if the 1st column's value is Y, then the 2nd column is "ReadOnly = True" (cannot edit)

    Row 2 -> the 1st column's value is N, then the 2nd column is "ReadOnly = False" (can edit)

  7. Hi, thank you for your reply.

     

    yes, it only allows user to upload one file at a time.

    But I do not want the user choose other file type.

    for example, I set the filter to '.pdf', so user can only select .pdf file. however, 'All Files (*.*)' allows user to view & select other file type.

     

    thanks.

  8. Hi Hayri Aslan,

     

    The code like:

     

                    vLocation := 'http://' + UniMainModule.mtSubscriptedInfoIP_Address.AsString +
                                 ':' + UniMainModule.mtSubscriptedInfoPort_Number.AsString + '/?' +
                                 'user_id=' + UniMainModule.mtUserAccountUserAccount_ID.AsString + '&' +
                                 'user_name=' + UniMainModule.mtUserAccountUser_Name.AsString;

     

     

    myForm.FrameInitial(vLocation);

     

    I just do not want the browser to be freeze if the target url cannot be connected.

     

     

    Thank You.

  9. Hi,

     

    I got two UniGUI applications.

    The browser will freeze if the 1st application is fail to call the 2nd application (unable to connect).

    User has to refresh the browser and login again.

     

    I would like to know how to avoid the browser freeze?

     

     

     

    Thank you.

     

  10. Hi,

     

    I put one 'login' button in the right top corner of the main form.

     

    Main Form Properties setting:

    1) BorderStyle = bsNone

    2) WindowState = wsMaximized

     

    My problem is :

    1) I resize the browser to half size, I cannot see the scroll bar.

    2) If I open the application with half size of the browser, then maximize the browser . The main form will not extend with browser.

     

    If I change the WindowState to wsNormal, then the main form will be 'cut off' when I resize the browser windowns.

     

    I would like to know is there any simple demo that can create the similar main form in the AllFeaturesDemo?

     

    Thank You.

×
×
  • Create New...