Clone page not cloning line item ?

I have Estimate and EstimateLine Objects. EstimateLine is a child and Estimate is a parent. “Estimate__c” is a look-up to Estimate object.  
                 Whenever I clone the page, it will clone Estimate but show  error on EstimateLine "’’ error on qeury: Select group, name, …  from EstimateLine  .where (Estimate__c =‘clone_1’)’’’’  , invalid Id field ‘clone_1’ .
 
I have a condition in estimateLineModel " EstimateLine records where Estimate__c is a id  field from the first row returned from EstimateModel"

My clone button action  url :  "/apex/EstimateDetail?id={{Id}}&clone=1"

I don;t know why its grabbing ‘clone_1’ instead of actual Id ?



Hi Amish

On your models, how is the property ‘Clone data returned by Model query’ set up? Because when your query returns cloned records, you get id’s like clone_1, clone_2, clone_3 and so on…

This is how I set up…We didn’t have any issue before but once we pushed the package we are having this issue…

Hmm… I’m not able to reproduce that error…

  • Do both models have the same properties there?
  • Which version of Skuid are you using?
Since the Estimate is cloned correctly, I assume that the id in the url is correct. So you could try to set the condition of the LineItem model to the url parameter as well.

Yes,
  Both models have same properties. And the version of Skuid is  8.15.2,  Version Name : Rockaway Point Release - Iteration 7 on My Dev org…
Do it has something to do with version ?

Did you try to set the condition of the estimateLine model to Estimate__c = url parameter id?

Yes,
    But when i do this, It will not copy line-items to new Estimate record, instead it will add a copy to the old estimate record.

Amish,

Did you ever get a resolution to this?

Tami,
     I had this cloning issue with old version (Rockaway). It got fixed somehow a while back. I hear the new version of skuid (Brooklyn) is also having the similar issue. 

Amish,

Thanks for getting back to me. Yes, I am having this same issue in Brooklyn. Hopefully, they get this fixed soon.

Tami,
           Ur welcome !  Hopefully they  fix all the errors in this Brooklyn version. Brooklyn version has  lots of extra features and its pretty cool, but on the other side, it also has lots of errors !