a month ago
I have a click Button to insert a new member into diemnsion
I have 1 input field for the ID and Description (its the same)
and i want the user to choose a category (property) from a drop down
also i want to define the heirarchie to be equal to H2 always
i wrote a script but its not working
NEED YOUR HELP IN THE DESCRIPTION FROM DROP DOWN AND INSERT A VALUE TO THE HIER COLUMN
var dim="Cause";
members = {
id:InputField_1.getValue(),
description:Dropdown_1.getValue()
H2:getValue(H2)
};
var status = PlanningModel_1.createMembers(dim,members);
if (status===true){Application.showMessage(ApplicationMessageType.Success,"master data is created");}
else {Application.showMessage(ApplicationMessageType.Error,"something is wrong,try again");}
Thank you very much
Hi,
Try using this.
var dimension = cast(Type.PlanningModelMember,{id: InputField_1.getValue(),description: InputField_2.getValue(),
hierarchies:{
Hierarchy:{parentId:"H2"}
}}
);
var result = PlanningModel_1.createMembers("Cause",dimension);
var ds = Table_1.getDataSource();
Application.refreshData([ds]);
Best Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
9 | |
8 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.