GetObejctInfo - Forum

Forum Navigation
You need to log in to create posts and topics.

GetObejctInfo

Good morning, When I try to use GetObejctInfo to get top and left position with object = page, I get 0,0, if object = container, I have a crash.

How to get AppPosition ?

GetObjectInfo "Container1" "left" [cT1Left]
GetObjectInfo "Container1" "top" [cT1Top]

TypeError: $App.NAB[objId].css is not a function

    GetObjectInfo http://localhost/js/main.js:2
    Page1_pageenter http://localhost/js/main.js:31
    Angular 5
    <anonymous> http://localhost/js/main.js:1
    Angular 10
    jQuery

@phil78 your code works for me. Sample app attached.

Uploaded files:
  • You need to login to have access to uploads.

@luishp Thank you Luis. I agree with you Luis it works, but I tried into 2 different app and it crashes, I do not know why.

Actually I need the position of the application, I did not find the get equivalent of setAppPosition or is there a global variable NAB?

@luishp Thank you Luis. I agree with you Luis it works, but I tried into 2 different app and it crashes, I do not know why.

@phil78 probably the problem is located before that command.

Actually I need the position of the application, I did not find the get equivalent of setAppPosition or is there a global variable NAB?

All coordinates refer to the upper left app corner. So it's allways at 0,0.
Use AppPosition "top" "left" to be sure it's at the upper left screen corner.

@luishp Hello Luis
In fact I understood the crash occurs when the GetObjectInfo call concerns a container containing a neoTable.
But I solved my whole need with the use of NAB.MouseX and NAB.MouseY.
Thanks again.
Greetings

luishp has reacted to this post.
luishp