[RESOLVED]is it possible to call a multiview in a function !?


i have a popup function thats works by calling it with maybe sAlert(‘hello’)
Then it will make a popup and in that popup i will get the word hello.
the function is called sAlert(str).

Is ot posible to say that str = a multiview !?

Lets sat that i have a code like that get a record from a db and depending on the value then i call a multiview like this

If blnNoRecords Then
            MultiView1.ActiveViewIndex = 0
        ElseIf intStatus = 0 Then
            MultiView1.ActiveViewIndex = 1
            MultiView1.ActiveViewIndex = 2
        End If

its works, but now i want to show the multiview in the sAlert, how can i set the str = my multiview !?

right now i use this to show the sAlert(‘hello’) in my str from sAlert(str)

        var txt = document.createElement("p");
        txt.style.margin = "1em 0"
        txt.setAttribute("id", "msgTxt");
        txt.innerHTML = str;

Leave a Reply