查找

Question
· Aug 29, 2019

Unidirectional Encryption String Recommendations ?

I need use/create an app based authentication class, best options on other languages is bcrypt, but on cache(2017.2) is not and option, any suggestion to construct this option ?

1 Comment
Discussion (1)0
Log in or sign up to continue
Question
· Aug 26, 2019

ERROR #9406: Unexpected format for value of field

I got below error when passing Date in timestamp format.

I am using %JSON.Adaptor. Please refer screen 2

4 Comments
Discussion (4)0
Log in or sign up to continue
Discussion (1)1
Log in or sign up to continue
Question
· Aug 10, 2019

How do I get the value of text input field using JavaScript

Hey Guys,

I got stuck with this for 2 days, please help me

Actually my logic is when I enter the input on the text field in browser, the entered input to be print on the next page but I am getting "Undefined". How to i do it.

Below is my code:

 

 

Class Patient.Testing Extends %ZEN.Component.page
{

/// Class name of application this page belongs to.
Parameter APPLICATION;

/// Displayed name of this page.
Parameter PAGENAME = "userLogin";

/// Domain used for localization.
Parameter DOMAIN;

/// This Style block contains page-specific CSS style definitions.
XData Style
{
<style type="text/css">
/* style for title bar */
#title {
background#C5D6D6;
colorblack;
font-familyVerdana;
font-size1.5em;
font-weightbold;
padding5px;
border-bottom1px solid black;
text-aligncenter;
}
#login{
text-aligncenter;
font-familyAriel;
font-size3.5em;
padding180px;
font-colorbrown;
}
#content{
text-alignleft;
font-size1.5em;
font-colordefault;
font-familydefault;
}
#content1{
text-alignleft;
font-size1.5em;
font-colordefault;
font-familydefault;
}
#button{
text-alignleft;
font-size1.5em;
font-colordefault;
font-familydefault;
}
</style>
}
/// This XML block defines the contents of this page.
XData Contents [ XMLNamespace = "http://www.intersystems.com/zen]
{
<page xmlns="http://www.intersystems.com/zentitle="">
<html id="title">Welcome!!!</html>
<vgroup width="100%">
<html id="login">Login</html>
<html id="content">Patient Id:</html>
<text id="patientId" value=""/>
<html id="content1">Password:</html>
<text id="patientPass" value=""/>
<button id="button" caption="Login" onclick="zenPage.MyMethod();"/>
</vgroup>
</page>
}
ClientMethod MyMethod() [ Language = javascript ]
{
var pId=document.getElementById("patientId").value;
var pPass=document.getElementById("patientPass").value;
document.write(pId,pPass);
}
}
 

 

Thanks

Vikram

4 Comments
Discussion (4)0
Log in or sign up to continue
Question
· Aug 7, 2019

Array, Property Setters, and Using ##class(Security.Users).Modify... to Disable a User Account from the Terminal

Hello,

I am wondering the best way to disable a user account using this class in Cache (Security.Users).

https://cedocs.intersystems.com/latest/csp/documatic/%25CSP.Documatic.cls

 

Example User Account = jhipp

Currently is Enabled

 

I know that we can use the auto-generated EnabledGetStored method, for example:

%SYS> w ##class(Security.Users).EnabledGetStored("jhipp")
1

 

There is not an auto-generated method to set this property, right?

 

I can modify this property with the Modify function, but I have to build a temp array with one value etc...

%SYS> s temp("Enabled")=0

%SYS> zw temp

temp("Enabled")=0

%SYS> w ##class(Security.Users).Modify("jhipp",  .temp)

 

Is there an easier way to do this, such as an auto-generated setter function or a shortcut for the array similar to this?

 

%SYS> w ##class(Security.Users).Modify("jhipp", "Enabled" = 0)

 

 

Just wanted to verify that there was not an easier way.

 

Thanks,

James

4 Comments
Discussion (4)1
Log in or sign up to continue