Hello,
How do I know If location is the father or not
Explain:
I have locations some with "children" and some without,
I want to know if location it's a father.
Now I can know if location it's a "child" by the "parent location"
Best Regards,
Refael.
Hi Refael,
You can use following code to check whether the given location is parent or not.
function test()
{
var i='{!$ORG_LOCN.name#text}';
var country = '{!$ORG_LOCN.country#value}';
if (i==country)
{
return "it is a parent";
}
}
var j=test();
rbv_api.println(j);
Thanks
Vasantha