finddatatype(url)

Used to get the correct record type when creating new or updating data on the server. 

Parameters

- url: the url you are going to use for uploading data. 

Return

maindata or listdata depending on url