User =_SYSTEM PW=sys or SYS it varies
- Log in to post comments
User =_SYSTEM PW=sys or SYS it varies
small extension.
USER>write $TR($zcvt("mY sImPlE eXaMpLe", "W")," ")
MySimpleExampleCould it be you experience a timeout due to long execution time ?
Arun,
#1) the error <INVALID OREFF> #2) goes away if you use Method BtnClickMe( ...) instead of ClassMethod BtnClickMe(....)
#2) setting title property turns out to be tricky since component DataCombo is a complex structure with multiple HTML elements
with multiple title properties. The ZENmethod setProperty() reaches only the first one.
Which is the Label (!) and if you didn't declare it in the ZEN class it is hidden and you will never see it.
As a consequence I found this code working:
<dataCombo
......
title=""
onmouseover="zenPage.BtnClick(event.currentTarget);"
/>event.currentTarget gives you the real browser component (<input...>) in hands
All settings of the page happen in client code.
Now as you do not depend on %page object now this could be a ClassMethod as well.
moved last comment to ANSWER.
from last comment:
https://www.sqlservercentral.com/Forums/Topic647815-145-1.aspx
so it can be marked as done.
changed group from "Community Feedback" to "Caché"
from:
https://www.sqlservercentral.com/Forums/Topic647815-145-1.aspx
did you consider that max could mean maximum allowed size ? while string max has no value.
#1) your subscript is just $i not $i(^%ARUNDTMP) so we loose the full trace for multiple calls.
but we have anyhow some trace.
#2) $isObject(%page) = 0
so there is NO object of your ZENpage available and access to %page.... must fail.
Hard to say why and where you loose %page
did you try ?
Not sure if this is the real problem: Anyhow it is a problem.
funny observation:
2 fresh installed instances (ENS 2017, IRIS 2018) show Unauthenticated only
while the upgraded Caché 2016.2 shows me Unauthenticated and Password.
But can't remember the status of MgmtPortal at the time of upgrade.
Quite interesting on my WIN10_prof I had no need of /S as I wante exactly THIS directory
And you are right. If the file exists already and is accessible nothing prevents you from modifying it.
You probably can't delete it as this requires access to directory.
And you are also right that ATTRIB doesn't propagate it.
So I think the whole approach to check the directory is misleading.
Now we are back to the initial proposal.
Do an OPEN with timeout in this directory ("WN") and on success you can write to the directory.
The test file can be removed by CLOSE file:"D" if you didn't open with "WND" .
And it tells you can I write there YES/NO
And this is independent of any status and flags and don't know what in whatever filesystem I work on.
If you go in Atelier menu to Windows > Preferences
and in there to General > Keys you find the definition for Ctrl+right / Ctrl+left
This tells me it's deep embedded in Eclipse. But can be changed:
https://wiki.eclipse.org/FAQ_How_do_I_provide_a_keyboard_shortcut_for_m…
I found ~ 1800 keymaps on Eclipse Marketplace
and for MS Visual Studio keymap (which might be closest) still 83 hits.
To summarize: it's NOT a configuration issue as long as you don't have something ready to include.
It might take some time to find a useful one.
In Caché you typically work on objects but you can present them also as rows in an SQLtable.
The identifier for objects is IDKEY if you don't do it yourself it is assigned by Caché.
PrimaryKey is something you assign by your application.
Both are UNIQUE.
And if you define your PrimaryKey as Autoincrement starting with 1 both are quite likely identical.
That's a basic view. IDKEY has far more variants to be found in documentation.
My extra LIKEs on 2
and 4 ![]()
![]()
There is a solution using WIN command attrib to check read only access flag.
It doesn't write files.
You are welcome to discuss about "elegance" .
But $ZU(140,1,Directory) ALWAYS returns -5 "no access"
tested on Cache for Windows (x86-64) 2016.2
Your observation is correct.
I checked the underlying system call.
In Windows {for me Win10} all you get back is the flag ="isDirectory"
So you need to do the indirect check as described in the comments
You are right. Open Parameter should be "WN"
It is just an indirect test as OPEN on a directory fails with < NOTOPEN>
And it also fails if the file already exists and can be accessed.
corrected:
Then you should check it with the OPEN command
Set file="full file reference"
OPEN file:("WN"):0 Else Write "write lock on file";!
you do an open for write on the file with timeout zero if it fails $TEST is 0 (false)
http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=GIOD_rmsseqfiles
You have to be aware that you access the file by the rather high privileged account that Caché service is running in.
Have you blocked this account too ?
You are right. But it has no impact.
Another reason to move to Atelier.
as all values out of your SQL query come from server you should be able
to setup the content of title on server side as you do for other ZEN components.
There is a wide doc on programming ZEN pages
http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=GZEN
ZEN component <datacombo has a parameter title which is displayed on mouseover event of the browser
example out of SAMPLES/ Class ZENApp.HelpDesk

Basically $c(1) s a NONPRINTING character - it has to be invisible by definition.
Instead of WRITE command use ZWRITE to visualize it or $TRANSLATE function to make it visible.
example:
So you require support for BMC Patrol!
Check here http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=GCM_patrol
OK if this Is outside you control you NEED a dirty trick.
Just before after the last Set Properties(....) in ZAUTHENTICATE insert this line:
to get a full copy of the array in %myProperties