.show() method is not working

Hello. I have this code. $$(‘object_id’).hide works, but nothing happnes with show():
var loginform = {
id: ‘loginform’,
view:“form”, elements:[
{ view:“text”, label:“Login”, name:“login”, labelWidth:90 },
{ view:“text”, type:“password”, label:“Password”, name:“password”, labelWidth:90 },
{
type:“clean”,
cols:[
{ view:“button”, type:“form”, label:“Login”, click:“login();” },
{ view:“button”, type:“round”, label:“Register” }
]
}
]
};

	var mainform = {			
               id: 'mainform',
            view:"form", elements:[
            { view:"text", label:"Login", name:"login", labelWidth:90 },
            { view:"text", type:"password", label:"Password", name:"password", labelWidth:90 },
            {
                type:"clean",
                cols:[
                    { view:"button", type:"form", label:"Login"},
                    { view:"button", type:"round", label:"Register" }
                ]
            }
        ]

		};
	
	function login(){
		dhx.notice({ delay:750, message:"Verificando ..."});
		dhx.alert('Ingreso correcto');
		$$("loginform").hide();
		$$("mainform").show();
	};
	var app = {
	    cells:[
			loginform,
	         	mainform
	    ]
	};

	dhx.ready(function(){
	    dhx.ui.fullScreen();
	    dhx.ui(app);
	});

We will check why it occurs, as fast solution, instead of

$$(“loginform”).hide();
$$(“mainform”).show();

call just

$$(“mainform”).show();

You are using multiview, which always show only one element, so there is no need for manual hide calls.

Hello Stanilsav, thanks for your answer. Actually, that’s what I first did, but It didn’t work. I used hide() to see if it was an ID related problem. Hide() works for both views, but show() doesn’t.

Hello,

Hide() works for both views, but show() doesn’t.

Is the issue solved ?

No, actually, It seems to be a bug of DHMLX Touchc, because it works whenever the view doesn´t contain a chart. I just opened another thread with error replication code.