cancel
Showing results for 
Search instead for 
Did you mean: 

update event and initialUpdate in 12.2.3

Former Member
0 Kudos

Hi

I have an iBrowser applet whoes initialUpdate value is set to false.

However it still runs the update event function when the page is first loaded.

Is this a bug?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Also tested as below, still running update event.

<HTML>

<HEAD>

          <TITLE>Your Title Here</TITLE>

          <SCRIPT language="JavaScript">

                    function disableUpdateEvent(){

     document.myBrowser.setUpdateEventEnabled(false);

     alert(document.myBrowser.getUpdateEventEnabled());

                    }

                    function hello()

                    {

                                   alert("hello");

                    }

          </SCRIPT>

</HEAD>

<BODY onload="disableUpdateEvent()">

<APPLET NAME="myBrowser" CODEBASE="/XMII/Classes" CODE="iBrowser" ARCHIVE="illum8.zip" WIDTH="640" HEIGHT="400" MAYSCRIPT>

          <PARAM NAME = "QueryTemplate" VALUE="EditForms/Queries/MachineGroup_Select_SQL">

          <PARAM name="UpdateEvent" value="hello">

</APPLET>

</BODY>

</HTML>

Former Member
0 Kudos

Hi Nick,

Where did you set it to false?

Former Member
0 Kudos

Hi

Sample code

<html>

<head>

<script>

function hello()

{

alert("hello")

}

</script>

</head>

<body>

<applet name="app1" code="iBrowser" etc>

<param name="QueryTemplate" value="myQuery">

<param name="DisplayTemplate" value="myDisplay">

<param name="InitialUpdate" value="false">

<param name="UpdateEvent" value="hello">

</applet>

</body>

</html>

The drop down list is not updated (correctly), but the update event is still triggered (incorrectly??).

agentry_src
Active Contributor
0 Kudos

Hi Nick,

Can you describe the sequence of what you want to happen? 

If you remove the UpdateEvent param, how does that affect the behavior?

Thanks, Mike

Former Member
0 Kudos

Hi

Scenario is two drop downs, selection from first populates second.

In "add" mode there is no issue, in "edit" mode my logic was as follows

set variable to say this is "first update"

set first value in first dropdown

selection event of first drop down sets parameter of second drop down and updates

update event of second drop down sets value in second drop down, and cancels "first update".

In new MII version

-extra Update event of second dropdown was cancelling "first update" variable before the drop down had even been populated.

-also setting the value of first dropdown in code doesn't seem to trigger selection event.

I have now managed to code round all this, so it's not really an issue, just seemed strange to me that the update event was triggered when I had asked for no initial update.

regards

Nick

agentry_src
Active Contributor
0 Kudos

Hi Nick,

I think it would be helpful if you opened a ticket.  Sure sounds like a bug.

Thanks, Mike

sidnooradarsh
Contributor
0 Kudos

Hello All,

Adding more info to this issue.

We are using MII 12.1 and today morning we patched our MII systems to 12.1.10 build (64).

And during testing we found exactly the same issue as described by Nick.

So, assuming this to be bug I am planning on logging OSS ticket, for now we added some workaround.

But please advise if I am missing something here or doing incorrectly.

Regards,

Adarsh