Date   

2 applications on 1 DMZ server #xpa #ria

Darren
 

Hello,

I would like to confirm if it is possible to connect to 2 different applications on a single app server/broker from a single DMZ Server

 

Connection1: url1.com >> App1

Connection2: url1.com/app2 >> App2

Thank you in advanced!


Re: CtrlHWND is working only on active fields?

Frederik Soete
 

Hi, Andreas,

Ignore the part about my form designer shenanigans.

Perhaps I should just try again with adjusting the pixel 2 point 2 dialog unit conversion. I could have made a silly unit mistake somewhere. 

Perhaps this programmer should first blame himself, instead of the form designer: if it were not pixel perfect, how could it work reliably?

Bye,

Frederik Soete

Op za 14 dec. 2019 04:52 schreef Frederik Soete via Groups.Io <frederik.soete=gmail.com@groups.io>:

Hi Andreas,

It is indeed odd and annoying. I do not know Friedrichs use case, and I, Frederik, have not tried your setting, because the help files mentioned some unwanted side effects.

So, when the setting does not allow testing, the magic runtimes hides inactive controls from the tester? Same applies to the old magic studio, as far as I can tell. But I do not know if changing the setting would also allow UI testing/automation on the old studio engine. Perhaps I would want to check this out some time. I like automating the boring bits of programming.

But the newish DotNet parts, like the form designer, do expose all controls, while a form is being drawn.

I have tried yesterday to create a perl script to continuously show Magic dialog units for the location of a pointed-to designer control, since it would be handy to see not only X and W, but also X+W while drawing.

I am sorry to say my attempt was not 100% successful: I could make heads nor tails from the Y and H pixel to d.u. conversions, but more to the point the X conversion is sometimes off by a point (.125 d.u.). Alas, the form designer must not be pixel perfect...

Just some ramblings of a nosy programmer,

Frederik

Op za 14 dec. 2019 03:49 schreef Andreas Sedlmeier <sedlmeier@...>:
Hi Friedrich. 

This is an very odd and annoying Magic feature which has been managed to be migrated even to latest version I think.

You can change this by setting AllowTesting=Y. Thats however a setting which you should use only for testing (ui automation). Better not for production. 

Best regards,

Andreas


Re: CtrlHWND is working only on active fields?

Frederik Soete
 

Hi Andreas,

It is indeed odd and annoying. I do not know Friedrichs use case, and I, Frederik, have not tried your setting, because the help files mentioned some unwanted side effects.

So, when the setting does not allow testing, the magic runtimes hides inactive controls from the tester? Same applies to the old magic studio, as far as I can tell. But I do not know if changing the setting would also allow UI testing/automation on the old studio engine. Perhaps I would want to check this out some time. I like automating the boring bits of programming.

But the newish DotNet parts, like the form designer, do expose all controls, while a form is being drawn.

I have tried yesterday to create a perl script to continuously show Magic dialog units for the location of a pointed-to designer control, since it would be handy to see not only X and W, but also X+W while drawing.

I am sorry to say my attempt was not 100% successful: I could make heads nor tails from the Y and H pixel to d.u. conversions, but more to the point the X conversion is sometimes off by a point (.125 d.u.). Alas, the form designer must not be pixel perfect...

Just some ramblings of a nosy programmer,

Frederik

Op za 14 dec. 2019 03:49 schreef Andreas Sedlmeier <sedlmeier@...>:

Hi Friedrich. 

This is an very odd and annoying Magic feature which has been managed to be migrated even to latest version I think.

You can change this by setting AllowTesting=Y. Thats however a setting which you should use only for testing (ui automation). Better not for production. 

Best regards,

Andreas


Re: CtrlHWND is working only on active fields?

Andreas Sedlmeier
 

Hi Friedrich. 

This is an very odd and annoying Magic feature which has been managed to be migrated even to latest version I think.

You can change this by setting AllowTesting=Y. Thats however a setting which you should use only for testing (ui automation). Better not for production. 

Best regards,

Andreas


Re: American Sales Tax Tables

Wes Hein
 

My experience with government (however you view or define their political leanings) is that passed legislation rarely (if ever) considers the difficulty, cost, or time considerations of programming a solution, that is not their problem!

Wes


Re: CtrlHWND is working only on active fields?

Frederik Soete
 

Hi Friedrich,

I have done a bit of experimenting with Magic forms in the past, and came to some tentative conclusion that Magic does not necessarily instantiate all the controls that are visible in a form, apart from e.g. buttons or the parked-on control. That means not every 'control' we think we see, is really a control with a hwnd at all times.

In my latest attempt at investigating this issue, I adapted the Magic code for a DotNet Property Inspector I found on an old Magic blog site.

It only showed controls associated with Magic DotNet variables, initially. But after some tweaking and adding some extra DotNet code (finding a forms children recursively), I could inspect the Magic controls within Magic forms, but that were not associated with a DotNet variable.

In the case of a table with X columns, and Y rows, my code detected only the focused control. Buttons outside of the table however were all visible. The property inspector allowed to change the focused control's runtime properties.

In conclusion, my wild guess about the non-instantiation of inactive controls is that it is some kind of optimization for performance reasons. But I do not know enough about Windows' and Magic's internals to be sure enough.

HTH,

Frederik Soete

Op vr 13 dec. 2019 16:40 schreef Friedrich Geisler-Buckert <Friedrich@...>:

Hi all,

is it possible, that the CtrlHWND command is only working on the field where the cursor is parked?

Is the any workaround to get the Handle form othere controls?

Best regards

Friedrich


CtrlHWND is working only on active fields?

Friedrich Geisler-Buckert
 

Hi all,

is it possible, that the CtrlHWND command is only working on the field where the cursor is parked?

Is the any workaround to get the Handle form othere controls?

Best regards

Friedrich


Re: Magic Logging (XPA 2.5)

Roberto Gauer
 

For standard mgerror output, on any Verify message, you can also use Append to error log.


On Fri, Dec 13, 2019 at 8:28 AM Roberto Gauer <gawarez@...> wrote:
Hi! 

For FlwMtr function output, you will need only BackgroundMsg = Y


For Logging function output, you will need to start INI with a valid archive/path in ExternalLogFileName 


On Thu, Dec 12, 2019 at 6:16 PM Dean Hudson (UK) <dean.r.hudson@...> wrote:
For the log file, put the full path including the drive letter and filename including its extension

On Thu, 12 Dec 2019, 14:40 Steven Burrows, <steven.burrows@...> wrote:

Yet again I struggle with getting the Magic Logging to write to the log file. In Studio, it doesn’t matter, I can use the Activity tab, but this is the runtime on a Client site, so need the actual log file.

 

When I turn any of the logging on, all that happens is that the Logfile is created, and anything that appears in mgerror.log is duplicated in mgflwmtr.log (so the settings have SOME effect)

What to do to get some activity logged to file ?

 

I have in the magic.ini

AccessLogging = Y

 

and

 

[MAGIC_LOGGING]

Task = Y

Levels = Y

DataView = Y

Recompute = Y

Flow = Y

Events = Y

TransCache = Y

LogSynch = Y

BeginEndMsg = Y

Gateway = Y

BackgroundMsg = Y

LogClient = Y

ExternalLogFileName = mgflwmtr.log

Steven Burrows

 

 


Re: Magic Logging (XPA 2.5)

Roberto Gauer
 

Hi! 

For FlwMtr function output, you will need only BackgroundMsg = Y


For Logging function output, you will need to start INI with a valid archive/path in ExternalLogFileName 


On Thu, Dec 12, 2019 at 6:16 PM Dean Hudson (UK) <dean.r.hudson@...> wrote:
For the log file, put the full path including the drive letter and filename including its extension

On Thu, 12 Dec 2019, 14:40 Steven Burrows, <steven.burrows@...> wrote:

Yet again I struggle with getting the Magic Logging to write to the log file. In Studio, it doesn’t matter, I can use the Activity tab, but this is the runtime on a Client site, so need the actual log file.

 

When I turn any of the logging on, all that happens is that the Logfile is created, and anything that appears in mgerror.log is duplicated in mgflwmtr.log (so the settings have SOME effect)

What to do to get some activity logged to file ?

 

I have in the magic.ini

AccessLogging = Y

 

and

 

[MAGIC_LOGGING]

Task = Y

Levels = Y

DataView = Y

Recompute = Y

Flow = Y

Events = Y

TransCache = Y

LogSynch = Y

BeginEndMsg = Y

Gateway = Y

BackgroundMsg = Y

LogClient = Y

ExternalLogFileName = mgflwmtr.log

Steven Burrows

 

 


Re: Can a control refer to the var-index of its assigned-variable?

Avgerinos
 

That's what I was looking for :-) Thanks Steven!
Avgerinos

On 12/12/2019 11:21 π.μ., Steven Burrows wrote:
You can get the Control Name.

Have a virtual to hold a string value, have this as the tooltip for all controls
Internal Event of Mouse Over update the virtual with HandledCtrl()

Not sure if you could use that get the actual field name or not, probably not.
This is another example of "oh ! I can use THIS()... oh, not it isn’t applicable".


Steven Burrows


-----Original Message-----
From: main@magicu-l.groups.io <main@magicu-l.groups.io> On Behalf Of Avgerinos via Groups.Io
Sent: 12 December 2019 06:06
To: main@magicu-l.groups.io
Subject: [magicu-l] Can a control refer to the var-index of its assigned-variable?

This email is not from Hexagon’s Office 365 instance. Please be careful while clicking links, opening attachments, or replying to this email.


Hi magicians

For debugging reasons, I need to display a tooltip with the field-name (or the connected ctrl-name) for all edit-controls in a form.
I wonder if there is an easy way to set the tooltip - hopefully using a single expression for all fields.
So far I cannot find a way to get the assigned VarIndex from within a control's properties
(XPA3 or above)

Thanks in advance
Avgerinos







Re: American Sales Tax Tables

Bob Witte
 

Yea & amen on the positioning!  Roger that on the $5k surcharge limit and BTW, my Magic software supports that already.  


Re: Magic Logging (XPA 2.5)

 

For the log file, put the full path including the drive letter and filename including its extension


On Thu, 12 Dec 2019, 14:40 Steven Burrows, <steven.burrows@...> wrote:

Yet again I struggle with getting the Magic Logging to write to the log file. In Studio, it doesn’t matter, I can use the Activity tab, but this is the runtime on a Client site, so need the actual log file.

 

When I turn any of the logging on, all that happens is that the Logfile is created, and anything that appears in mgerror.log is duplicated in mgflwmtr.log (so the settings have SOME effect)

What to do to get some activity logged to file ?

 

I have in the magic.ini

AccessLogging = Y

 

and

 

[MAGIC_LOGGING]

Task = Y

Levels = Y

DataView = Y

Recompute = Y

Flow = Y

Events = Y

TransCache = Y

LogSynch = Y

BeginEndMsg = Y

Gateway = Y

BackgroundMsg = Y

LogClient = Y

ExternalLogFileName = mgflwmtr.log

Steven Burrows

 

 


Re: American Sales Tax Tables

Andy Jerison
 

Watch out for the notorious East Coast socialist* state of Florida. They have an insidious wrinkle I haven't seen before. There's a statewide sales tax onto which counties can layer a surtax. But the surtax is only chargeable on the first $5,000 of a sale, so, if your client makes high-value sales, there's an infinite number of potential tax rates.

Cool, eh?

Andy 

*For non-Americans: in the United States, "socialist" corresponds to somewhat right of what would be the political center in the rest of the world. Florida's government is on the far right by world standards. 

On Wed, Dec 11, 2019, 13:05 Bob Witte <BobWitte@...> wrote:
Thanks for that Keith!  Although I wandered around their site, I missed that page.  I've signed up for the 15 states they have to report to and contacted Avalara to explore it further and will report back to the forum on my findings.


Magic XPA 4.x - Local databases - Chage in structure

Brenda Bullorini
 

Hello everyone,

I'm working on a mobile app, using local databases.
As the help says:

Changing the Database Structure of a Local Data Source

When a change is made to the structure of a local data source (such as deleting a field, modifying a field picture, or adding a field), the change is automatically applied to the client’s local data source after the project metadata is transferred to the client.

The existing local data is automatically converted to the new structured data source if possible.

If a change in the local data source structure invalidates some of the data (such as adding a unique index or changing a string field to a numeric one), this data will be lost. Therefore, it is recommended to avoid making such changes if you need the local data.

Note that the conversion from the old structure to the new one is done based on the data source’s ISN. This means that if the local data source was renamed in the Studio, it will also be renamed in the local database. If you want your original local data source to remain unchanged, you need to create a new data source for the new structure.

So, knowing this, I assumed that if I change the structure for a local database it would automatically convert it to the new structure in the client. I don't mind losing data, I just
need the new structure. But that didn't happen, I had to ask every user to go to settings -> apps -> magic app -> storage -> delete data and cache
because they were getting "failed to open data source, no such column.."
Am I missing something? do I have to do it manually with the ClientDbDel function?!
does this function perform a "truncate table" or just deletes the data?

Thank you!!


Magic Logging (XPA 2.5)

Steven Burrows
 

Yet again I struggle with getting the Magic Logging to write to the log file. In Studio, it doesn’t matter, I can use the Activity tab, but this is the runtime on a Client site, so need the actual log file.

 

When I turn any of the logging on, all that happens is that the Logfile is created, and anything that appears in mgerror.log is duplicated in mgflwmtr.log (so the settings have SOME effect)

What to do to get some activity logged to file ?

 

I have in the magic.ini

AccessLogging = Y

 

and

 

[MAGIC_LOGGING]

Task = Y

Levels = Y

DataView = Y

Recompute = Y

Flow = Y

Events = Y

TransCache = Y

LogSynch = Y

BeginEndMsg = Y

Gateway = Y

BackgroundMsg = Y

LogClient = Y

ExternalLogFileName = mgflwmtr.log

Steven Burrows

 

 


Re: Can a control refer to the var-index of its assigned-variable?

Todd Baremore
 

Thanks Govert.   Just looked at VA07, it using VarInp(0) in an event handler, which I was not doing.  Good point about the tooltip. With your guidance I have revised my strategy, which is still not perfect.

Virtual  G    ToolTip String      Alpha  100

Event Handler    Mouse Over        [No control Name]
Update   G     Exp: VarName(VarInp(0))

Set the control tooltip to  Exp: G

You still need to be parked on the control, but it is closer.    If the control names are sufficiently meaningful, I would use Steven's solution.

Todd
On 12/12/2019 6:03 AM, Govert Schipper wrote:

Todd,

If you check the Online Samples in xpa 3.2, program VA07, this does work. 
So what are you doing differently?

BTW: this doesn't help Avgerinos since the tooltip is shown even when not parked on the control.

Govert


Van: main@magicu-l.groups.io <main@magicu-l.groups.io> namens Todd Baremore <tbaremor@...>
Verzonden: donderdag 12 december 2019 11:29
Aan: main@magicu-l.groups.io <main@magicu-l.groups.io>
Onderwerp: Re: [magicu-l] Can a control refer to the var-index of its assigned-variable?
 
You would expect VarName(VarInp(0)) to work, but VarInp(0) always returns zero in XPA3.x and XPA4. x.    Seems like a bug to me. 

Todd

----- Reply message -----
From: "Steven Burrows" <steven.burrows@...>
To: "main@magicu-l.groups.io" <main@magicu-l.groups.io>
Subject: [magicu-l] Can a control refer to the var-index of its assigned-variable?
Date: Thu, Dec 12, 2019 04:21

You can get the Control Name.

Have a virtual to hold a string value, have this as the tooltip for all controls
Internal Event of Mouse Over update the virtual with HandledCtrl()

Not sure if you could use that get the actual field name or not, probably not. 
This is another example of "oh ! I can use THIS()... oh, not it isn’t applicable". 


Steven Burrows


-----Original Message-----
From: main@magicu-l.groups.io <main@magicu-l.groups.io> On Behalf Of Avgerinos via Groups.Io
Sent: 12 December 2019 06:06
To: main@magicu-l.groups.io
Subject: [magicu-l] Can a control refer to the var-index of its assigned-variable?

This email is not from Hexagon’s Office 365 instance. Please be careful while clicking links, opening attachments, or replying to this email.


Hi magicians

For debugging reasons,  I need to display a tooltip with the field-name (or the connected ctrl-name) for all edit-controls in a form.
I wonder if there is an easy way to set the tooltip - hopefully using a single expression for all fields.
So far I cannot find a way to get the assigned VarIndex from within a control's properties
(XPA3 or above)

Thanks in advance
Avgerinos











Cannot send mail through Outlook when Outlook is open

pavel.gazda@...
 

Hi,

I want to send an email via Microsoft Outlook. I use OLE application object and OLE mail object, fill in and send.
This works well when MS Outlook is closed.
It doesn't work when MS Outlook is open/running.

I tried it over .NET, but it behaves similarly.

Is there any settings or something else missing?

Thanks for any idea.
Pavel


Re: Can a control refer to the var-index of its assigned-variable?

Govert Schipper
 

Todd,

If you check the Online Samples in xpa 3.2, program VA07, this does work. 
So what are you doing differently?

BTW: this doesn't help Avgerinos since the tooltip is shown even when not parked on the control.

Govert


Van: main@magicu-l.groups.io <main@magicu-l.groups.io> namens Todd Baremore <tbaremor@...>
Verzonden: donderdag 12 december 2019 11:29
Aan: main@magicu-l.groups.io <main@magicu-l.groups.io>
Onderwerp: Re: [magicu-l] Can a control refer to the var-index of its assigned-variable?
 
You would expect VarName(VarInp(0)) to work, but VarInp(0) always returns zero in XPA3.x and XPA4. x.    Seems like a bug to me. 

Todd

----- Reply message -----
From: "Steven Burrows" <steven.burrows@...>
To: "main@magicu-l.groups.io" <main@magicu-l.groups.io>
Subject: [magicu-l] Can a control refer to the var-index of its assigned-variable?
Date: Thu, Dec 12, 2019 04:21

You can get the Control Name.

Have a virtual to hold a string value, have this as the tooltip for all controls
Internal Event of Mouse Over update the virtual with HandledCtrl()

Not sure if you could use that get the actual field name or not, probably not. 
This is another example of "oh ! I can use THIS()... oh, not it isn’t applicable". 


Steven Burrows


-----Original Message-----
From: main@magicu-l.groups.io <main@magicu-l.groups.io> On Behalf Of Avgerinos via Groups.Io
Sent: 12 December 2019 06:06
To: main@magicu-l.groups.io
Subject: [magicu-l] Can a control refer to the var-index of its assigned-variable?

This email is not from Hexagon’s Office 365 instance. Please be careful while clicking links, opening attachments, or replying to this email.


Hi magicians

For debugging reasons,  I need to display a tooltip with the field-name (or the connected ctrl-name) for all edit-controls in a form.
I wonder if there is an easy way to set the tooltip - hopefully using a single expression for all fields.
So far I cannot find a way to get the assigned VarIndex from within a control's properties
(XPA3 or above)

Thanks in advance
Avgerinos










Re: Can a control refer to the var-index of its assigned-variable?

Todd Baremore
 

You would expect VarName(VarInp(0)) to work, but VarInp(0) always returns zero in XPA3.x and XPA4. x.    Seems like a bug to me. 

Todd

----- Reply message -----
From: "Steven Burrows" <steven.burrows@...>
To: "main@magicu-l.groups.io" <main@magicu-l.groups.io>
Subject: [magicu-l] Can a control refer to the var-index of its assigned-variable?
Date: Thu, Dec 12, 2019 04:21

You can get the Control Name.

Have a virtual to hold a string value, have this as the tooltip for all controls
Internal Event of Mouse Over update the virtual with HandledCtrl()

Not sure if you could use that get the actual field name or not, probably not. 
This is another example of "oh ! I can use THIS()... oh, not it isn’t applicable". 


Steven Burrows


-----Original Message-----
From: main@magicu-l.groups.io <main@magicu-l.groups.io> On Behalf Of Avgerinos via Groups.Io
Sent: 12 December 2019 06:06
To: main@magicu-l.groups.io
Subject: [magicu-l] Can a control refer to the var-index of its assigned-variable?

This email is not from Hexagon’s Office 365 instance. Please be careful while clicking links, opening attachments, or replying to this email.


Hi magicians

For debugging reasons,  I need to display a tooltip with the field-name (or the connected ctrl-name) for all edit-controls in a form.
I wonder if there is an easy way to set the tooltip - hopefully using a single expression for all fields.
So far I cannot find a way to get the assigned VarIndex from within a control's properties
(XPA3 or above)

Thanks in advance
Avgerinos










Re: Can a control refer to the var-index of its assigned-variable?

Steven Burrows
 

You can get the Control Name.

Have a virtual to hold a string value, have this as the tooltip for all controls
Internal Event of Mouse Over update the virtual with HandledCtrl()

Not sure if you could use that get the actual field name or not, probably not.
This is another example of "oh ! I can use THIS()... oh, not it isn’t applicable".


Steven Burrows

-----Original Message-----
From: main@magicu-l.groups.io <main@magicu-l.groups.io> On Behalf Of Avgerinos via Groups.Io
Sent: 12 December 2019 06:06
To: main@magicu-l.groups.io
Subject: [magicu-l] Can a control refer to the var-index of its assigned-variable?

This email is not from Hexagon’s Office 365 instance. Please be careful while clicking links, opening attachments, or replying to this email.


Hi magicians

For debugging reasons, I need to display a tooltip with the field-name (or the connected ctrl-name) for all edit-controls in a form.
I wonder if there is an easy way to set the tooltip - hopefully using a single expression for all fields.
So far I cannot find a way to get the assigned VarIndex from within a control's properties
(XPA3 or above)

Thanks in advance
Avgerinos

4601 - 4620 of 196382