Wednesday, 5 December 2012

How to get a field value when we click on MVG?

I have a requirement that when i click on an MVG, Its associate applet should have some filer value, that depends on the value of base applet. So i need that value from base applet. I solved this problem by creating profile attributes. When i click on the MVG the profile attribute will set by using the following code.

function Applet_PreInvokeMethod (name, inputPropSet)
{

   
    if(name == "EditPopup"){
        var myname=  this.BusComp().GetFieldValue("field Name");
        TheApplication().SetProfileAttr("attr_name",myname);
        //alert(myname);
    }

    return ("ContinueOperation");
}

In the search specification if the Assoc applet, I get this profile attribute

[filed_name] = GetProfileAttr("attr_name")

Now It is solved

No comments:

Post a Comment