on 01-05-2013 12:51 PM
Hi Experts
I was trying to use to BRM Rules Edit API (in CE 7.31) to modify the Decision table (DT) record (as per explained in below URL)
I have one ruleset and one DT in rules project. I am able to read the record from the DT successfully by APIs, but when I try to modify it I am facing problem. After setting the new cell value for particular DT row, I am not able to commit the project to activate the updated record for DT. Could anybody help on this by providing some guidance for below syntax, it would be really great help.
Syntax ==>> project.commit(rulesets , true);
Thanks & Regards,
pankaj
Hi Pankaj
You can use the following code for committing the changes
Create a IRuleSet Array and define its size as 1.
IRuleset[] rulesets = new IRuleset[1];
Assign its first element to the ruleset that you already created .
rulesets[0] = ruleset;
and you can commit using the IRuleSet Array
project.commit(rulesets, true);
Try using this code .
Regards
Mani Gupta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
I am facing similar issue as commit() allows only ruleset array.
Please share if you reached out to SAP for an answer ?
Thanks,
MB
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mahantesh,
I was facing a similar problem regarding placing string values in dtRows element.
for example: dtRows[0].getCells()[0].setValue("string");
ends in an error if i tried to commit. This problem occurs if i edited colomns of BRM which has the type string.
There is an issue regarding the background pointer arithmetic in this case. For me the folllowing solutions worked fine: dtRows[0].getCells()[0].setValue("string".toString());
I just added the toString method, which forces creation of new variable in the context of the server.
Perhaps this could solve your problem.
Regards Patric
Hi pankaj,
i'm facing the same problem. Did you solve your problem?
Thanks & Regards,
Patric
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.