Skip navigation
ecchuckles
Currently Being Moderated

how to push child record using beanproxy?

Jan 19, 2012 6:28 AM

I've been using the hibnerateassembler to update  parent and insert child record  into db on the lcds server and then using the beanproxy to try to push the updates back to the client. The parent update is received by the client but not the child record;

 

here's what I'm currently trying to do

 

BeanProxy proxy = new BeanProxy(parent)

parent.setvalue("col1",val);

parent.setValue("col2",val2)

 

BeanProxy bp = new BeanProxy(parent.getValue("child"));

bp.setValue("col1",child.val);

bp.setValue("col2",child.val);

 

DataServiceTransaction dtx = DataServiceTransaction.begin(false);    

  dtx.createItem(ChildService,child);

   dtx.updateItem(ParentService, parent, oldParent, null);

   dtx.commit(); // done telling lcds

 

 

what am I doing wrong?

thanks in advance

chuckles

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points