Jump to content

freedowsRoO

Members
  • Posts

    188
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by freedowsRoO

  1. 10 minutes ago, Sherzod said:

    Well, in principle, it can be done I guess, but it is desirable to have explicit drop targets...

    Are you have some example?

     

    Im my tests i couldn't trigger the grid drop events when i drop the row in a panel for example. I tried with 'OnDropRowEvents' and 'OnEndDrag'.

  2. 18 minutes ago, Sherzod said:

    Please see this demo:

    
    \FMSoft\Framework\uniGUI\Demos\Desktop\Grid - DragDrop - Custom Handler

     

    I've already saw this demo and didn't help me.

     

    I want to drop the record in anywhere. When i drop the record this record be deleted. Example:

    example.png

  3. 2 minutes ago, Sherzod said:

    Hello,

    You can also analyze this demo example I think:

    
    \FMSoft\Framework\uniGUI\Demos\Desktop\Session List

     

    I'm already looked at this demo, this demo show how to get the sessions not how kill them.

     i'm already use the demo example to save the sessions im my DB.

  4. Hello!! 

    I made a function to not permit the same user login in two different PCs, so when i detect that same user in another PC i want to kill the old session. 

    Here is the question: How can i kill the session manually, without use "timeout"?

     

    I searched in another topics for this and did not find the answer.

  5. 19 hours ago, Sherzod said:

    Sorry for the late reply.

    I’m thinking about another possible case.
    What if you will change the value of the "VALUE" field, what will happen to fields 2, 3?

    Hello, no problem bro. So..   in this example that i sended to you nothing. 

     

    But in my aplication i will calculate the value of the "VALUE" field based on quantity * unit price.

    The field 2 (%)  calc will be:  ( FIELD 3 /  (quantity * unit price)  )  * 100

    The field 3 (DISCOUNT)  calc will be:  ( (quantity * unit price)  / 100 )  *  FIELD 2

  6. 20 minutes ago, Sherzod said:

    As I understand it, you also want to change the value of the third column, changing the percentage?

    Yes, exactly! If the user input a value in the column number 2 (%)  then i need to calc the column 3 (discount) and after that if the user change the value of column 3 (discount) i need to calc the new % on column 2.

    ps: Sorry, there is an error on my attach, here is the new one.

    GRID CALC.rar

  7. 7 hours ago, Sherzod said:

    If I understand you correctly.

    Well, when you use calculated fields, it’s better to set this field as not editable.

    Sorry i can't managed to do what i want. It's complicated to work with the extJS. Your solution using 'reconfigure' almost work but not 100%, i need to calcule only two fields but the reconfigure not working.

    To be more specific i need that when i input 'DISCOUNT' value i need to calcule the '% DISCOUNT' automatic and when i input  "% DISCOUNT" i need to recalcule de "DISCOUNT" value.

    Example:

    The user input this values:

    PRODUCT_VALUE = 1000

    CELL 1 "DISCOUNT" = 500

    CELL 2 "% DISCOUNT" = 50  ( ok the reconfigure calc this field   (500/1000)*100 )

     

    The problem is now, let's supose that the user change de "% DISCOUNT" value manualy to 10:

    PRODUCT_VALUE = 1000

    CELL 1 "DISCOUNT" = 500 (i need that this value change automatic to 100 = (1000/100 ) * 10)

    CELL 2 "% DISCOUNT" = 50 (the user change this value to 10)

     

×
×
  • Create New...