removeRecordFromField API not working when I try to delete a row from table.

Tap Forms – Organizer Database App for Mac, iPhone, and iPad Forums Script Talk removeRecordFromField API not working when I try to delete a row from table.

Viewing 1 reply thread
  • Author
    Posts
  • November 27, 2019 at 6:10 PM #38349

    Rocky Machado
    Participant

    Hi – Not sure if the removeRecordFromField API is working correctly, but I am trying to delete a row from a table within my form. I can see the data when I cycle through a form, but when I try to delete a row it does. not do anything.

     	//-- this is the field Id of the table
     	var profit_loss_breakdown_id = 'fld-a2312f9984e2472a91cd7fa8b1ec5cff';
    
    	for (rec of record.getFieldValue(profit_loss_breakdown_id)){
    		
    		//-- I can fetch records here with no problem, but can't delete record
    		//-- in table
    		record.removeRecordFromField(rec, profit_loss_breakdown_id);			
    	}
    

    thank you in advance,
    rocky

    November 27, 2019 at 7:51 PM #38353

    Brendan
    Keymaster

    Hi Rocky,

    I know I recently worked on that code. You’re right, it wasn’t working. But should be in the latest version. What I can’t remember is if that fix made it into the latest published version or if it’s just in the latest beta versions.

Viewing 1 reply thread

You must be logged in to reply to this topic.