go to post Robert Cemper · Feb 16, 2018 Ooops!The sequence of recruiters seems to be reversed related to values Gold Recruiter - 10 referralsAwarded after 10 / 50 / 100 of your referrals have joined Developer Community.Silver Recruiter - 50 referralsBronze Recruiter - 100 referrals
go to post Robert Cemper · Feb 14, 2018 Oliver,this turned out to be somewhat more tricky than expected.The way you used stream.FindAt(...) returns the size of the gap between the last found occurrence and the next.So you have to add the size of your search string for each loop to get closer to your file sizeso it might be easier to do it this way:set last=1for set i=stream.FindAt(last,"Invalid password") quit:i<0 set last=ithis might be closer but definitely smaller than the total size
go to post Robert Cemper · Feb 14, 2018 it says:If it does not find the target string then return -1 . So what you get in i is the last start of your search string Which is 2491024949 - 2442920326 = 48104623 from end.It's almost the same as your first occurrence at 49134354. Looks feasible.To get the file size as you expect the LAST search string must have been startingAT the end of your file. Which is a contradiction.
go to post Robert Cemper · Feb 14, 2018 your code: from Docs:set i=stream.FindAt(-1,"Invalid password",x)+ifrom Docs:http://docs.intersystems.com/latest/csp/documatic/%25CSP.Documatic.cls?PAGE=CLASS&LIBRARY=%25SYS&CLASSNAME=%25Stream.Object#FindAt method FindAt(position As %Integer, target As %CacheString, ByRef tmpstr As %CacheString = "", caseinsensitive As %Boolean = 0) Find the first occurrence of target in the stream starting the search at position.It returns the position at this match starting at the beginning of the stream.If it does not find the target string then return -1.If position=-1 then start searching from the current location and just return the offset from the last search,useful for searching through the entire file.If you are doing this you should pass in tmpstr by reference in every call which is used asa temporary location to store information being read so the next call will start where the last one left off.If you pass caseinsensitive=1 then the search will be case insensitive rather than the default case sensitive search. So your line should work like thiswhile(stream.AtEnd=0){set i=stream.FindAt(-1,"Invalid password",.x)+i}-----------------------------------------------------------------^PASS BY REFERENCE should do the trick
go to post Robert Cemper · Feb 13, 2018 Since the time when there was a Projection to C# I have adopted unique names.It was an incredible pain if names were not unique.
go to post Robert Cemper · Feb 12, 2018 Congratulations! The call to server is only necessary if you provide some tricky calculations at server side
go to post Robert Cemper · Feb 11, 2018 I have no issue with Angular or React. But:Leave Vue.js since vue in French is "seen" and that means nothing in this environment . "dejà vue"
go to post Robert Cemper · Feb 10, 2018 I assume this is the Trial version ! if you log in the management portal you should have a management account _SYSTEMand it has a 3 letter password SYS or syshttp://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=RSQL_defaultusernamepassword#RSQL_C127680http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=GCAS_users#GCAS_users_predefined
go to post Robert Cemper · Feb 9, 2018 small extension.USER>write $TR($zcvt("mY sImPlE eXaMpLe", "W")," ")MySimpleExample
go to post Robert Cemper · Feb 9, 2018 Could it be you experience a timeout due to long execution time ?
go to post Robert Cemper · Feb 9, 2018 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 elementswith 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 ClientMethod BtnClick(DTCOMBO) As %String [ Language = javascript ]{ var MyPriority=DTCOMBO.value; var result=zenPage.BtnClickMe(MyPriority); DTCOMBO.title=result ; return;}All settings of the page happen in client code. /// calculate content of title /// actually a fake for testingMethod BtnClickMe(MyPriority) As %String [ ZenMethod ]{ set ^%Arun($i(^%Arun))=MyPriority quit MyPriority_"****"_^%Arun}Now as you do not depend on %page object now this could be a ClassMethod as well.
go to post Robert Cemper · Feb 9, 2018 from last comment: https://www.sqlservercentral.com/Forums/Topic647815-145-1.aspxDifference between varchar(max) and varchar(8000)Varchar(8000) stores a maximum of 8000 characters. Varchar(max) stores a maximum of 2 147 483 647 characters. See Books Online, the page titled "char and varchar" for more info. Gail ShawMicrosoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci) so it can be marked as done.
go to post Robert Cemper · Feb 9, 2018 from: https://www.sqlservercentral.com/Forums/Topic647815-145-1.aspxDifference between varchar(max) and varchar(8000)Varchar(8000) stores a maximum of 8000 characters. Varchar(max) stores a maximum of 2 147 483 647 characters. See Books Online, the page titled "char and varchar" for more info. Gail ShawMicrosoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
go to post Robert Cemper · Feb 9, 2018 did you consider that max could mean maximum allowed size ? while string max has no value.
go to post Robert Cemper · Feb 9, 2018 #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
go to post Robert Cemper · Feb 9, 2018 did you try ?SET SQLQuery3 = "{ call xxxx('aaaa') }"SET tSC = ..Adapter.ExecuteProcedure(,,SQLQuery3)
go to post Robert Cemper · Feb 8, 2018 Not sure if this is the real problem: Anyhow it is a problem. var result=this.BtnClickMe(MyPriority); // here you expect a return value return;}ClassMethod BtnClickMe(MyPriority) as %String [ ZenMethod ] // return something{ set ^%Arun($i(^%Arun))=$isObject(%page) // JUST temporary for debugging // check for <INVALID OREF> Set %page.%GetComponentById("Priority1").title=MyPriority quit $$$OK // return something}