Hello to all.
I try to create a formula for a URL field. The Idea is to get a specific record from a public database (land registry). I have to create the URL by referring to another field value. So far so good. But I also need to get the first two characters from that field and also the third to fifth caracter of the field. It's a bit complicated.
The first reference is in field 'refcatastral': 123456UF52PLG
For the URL (in field 'Catastro') I need the complete value of the field, and also the first two digits (12) and also the third to fifth digit (345).
Is there a possibility to get it. Here is the formula like it is so far:
catastro=string\concatenate('https://www1.sedecatastro.gob.es/CYCBienInmueble/OVCConCiud.aspx?UrbRus=R&RefC=', refcatastral, '&esBice=&RCBice1=&RCBice2=&DenoBice=&from=OVCBu sq ueda&pest=rc&RCCompleta=', refcatastral, '&final=&del=29&mun=900')
Where right now at the end of the URL is '29' should be the first two digits of the field 'refcatastral'
Where right now at the end of the URL is '900' should be the 3rd to fifth digit of the field 'refcatastral'
Maybe there is also a possibility to change the visible field value by adding a href to the formula so that instead of the long URL only a word is displayed in the detail view of ESPO?
Thanks for your help.
I try to create a formula for a URL field. The Idea is to get a specific record from a public database (land registry). I have to create the URL by referring to another field value. So far so good. But I also need to get the first two characters from that field and also the third to fifth caracter of the field. It's a bit complicated.
The first reference is in field 'refcatastral': 123456UF52PLG
For the URL (in field 'Catastro') I need the complete value of the field, and also the first two digits (12) and also the third to fifth digit (345).
Is there a possibility to get it. Here is the formula like it is so far:
catastro=string\concatenate('https://www1.sedecatastro.gob.es/CYCBienInmueble/OVCConCiud.aspx?UrbRus=R&RefC=', refcatastral, '&esBice=&RCBice1=&RCBice2=&DenoBice=&from=OVCBu sq ueda&pest=rc&RCCompleta=', refcatastral, '&final=&del=29&mun=900')
Where right now at the end of the URL is '29' should be the first two digits of the field 'refcatastral'
Where right now at the end of the URL is '900' should be the 3rd to fifth digit of the field 'refcatastral'
Maybe there is also a possibility to change the visible field value by adding a href to the formula so that instead of the long URL only a word is displayed in the detail view of ESPO?
Thanks for your help.
Comment