XLSForms PULL Data - webforms

please I need a help in an issue where I want the pull data function not to run when a specific field has an answer
the image describes exactly what I have
for example in the image above , no need to pull data when the field "Mohafaza" already have an answer , it is pulling data and overwrite my edits if I save the form as draft and re-open it
thank you

Modify the code in your calculation column for row Mohafaza from:
${Mohafazacheck}
to:
if(${Mohafaza}='', ${Mohafazacheck}, ${Mohafaza})
Every time you re-open the form, it will only replace Mohafaza if the question doesn't have an answer already.

Related

How to extract a text from a url while conditionally rendering the images using an Arrayformula in Google Sheets?

This formula below does extract the file ID and yields the correct image url. Now, how to fetch the correct url to extract that ID from by verifying a key using VLOOKUP() maybe?
I've seen that REGEXEXTRACT() requires JOIN() and could this be the reason why it doesn't work?
Current formula doesn't populate the rows, but only the one it's sitting in:
=arrayformula(iferror(image("https://drive.google.com/uc?export=view&id="&regexextract(VLOOKUP($F$3:$F$100,$I:$I,2,0),"d/(.+)/view")),""))
Here's a file for tests, if you feel like operating.
Thank you!
Your formula is working! Just change $I:$I with $I:$J.
You need to put the whole range including the column to look at and the column with the results.

Amazon Quicksight adding new field to dataset

Hi I have been looking for some time to an answer to this but I really can not find one.
I have a dataset that is build from an S3 file.
this s3 file gets updated everynight and the dataset is refreshed soon after.
All the above works as you would expect. However if I want to add a field to the S3 file and see it in the dataset I can not seem to make this work.
I always get an error for every line of data that says INCORRECT_FIELD_COUNT
The documentation appears to suggest that adding a new field is fine so I assume there is something I need to do to make sure this works.
Any ideas?
I also posted here https://forums.aws.amazon.com/thread.jspa?threadID=346538&tstart=0
but after posting about 5 questions and never getting an answer on there I thought I would try here.
Thanks
Solution:
Edit your dataset
On the left you'll see a an "Excluded Fields" category (below the list of Fields). Expand it.
For each excluded field you'd like to include, click on the vertical dots and select "include field"
Save your dataset
Refresh your dataset to include the new fields

SAP BODS - Getting PK violation from a Table Comparison

I want to read from a table, change a couple column values for a few lines in a query, then update those lines on the same table.
I'm using SAP BODS, and that's what I tried:
I was about to insert images but just found out I can't insert images until 10 rep.
Anyway, I created a DataFlow where I have the same table as source and target.
A query to filter (using where) and change values (using mapping). And then a Table Comparison (where I expected those lines to be set to update, in this particular case), set table name on first entry, then PK in 'input primary key' and then the two columns I want to change in 'Compare columns'. No other changes from default that I can recall.
Got no warnings on 'validate all', and on execution I receive an ORA-00001 for the PK.
So ... I thought the Table Comparison would try to update, but seems like it's trying to insert instead. I want to know what I'm doing wrong and how could I get the job to do those updates. Thanks in advance.
Ps. I did search SO before asking and didn't find anything relevant.
Ok
So, turns out I just found what's going on a few minutes after posting the question.
Wasn't sure if I should answer my own question and took a look at this Etiquette for answering your own question
and decided to come back here and answer my own question.
For some reason I got stuck thinking that it was something to do with the Table Comparison trying to insert a line with a PK that's already there, instead of doing the update I wanted.
But after going back to the job to take another look at the issue, it occurred to me that maybe the problem could be a duplicate in the incoming data set. Made a few adjustment to filter those, and voilĂ .

Is it possible to reverse a column transformation in Spotfire, and if not, what are the alternatives?

I've made the mistake of using the 'Calculate and Replace Column' feature to replace the wrong column, and realized after the fact. The column I replaced corresponds to last names and is important. I would like to retrieve this column but maintain my other 15 or so data transformations. Ideally, I would like to remove this transformation, but I've come up empty so far. Here's what I've tried:
I tried adding the 'last name' column again from the same external source, using >Insert >Columns... I also tried renaming this column to avoid the data transformation. Unfortunately, this resulted in an entirely empty column, so it did not successfully match to the table or was affected by the transformation..
I checked the source information, and found exactly the 3-4 lines that I wish were not there. I thought it might be possible to edit this but haven't found a way. This seems like it would be the easiest.
Another idea I had was I could replace the data table with the same source, and repeat all of the transformations from the replace data table dialogue (excluding the bad one). This is my next plan of attack, but I figured I would come on here to see if there's an easier way first.
Thanks in advance!
Good News for YOU!!! #jeremyVollen.
It is possible to 'edit' your transformation per Tibco article 44098.
Resolution: If there are more then one transformations on a data table and you need to edit any of those transformation, follow the steps below:
Go To Edit >> Data Table Properties.
Select the desired data table inside which the transformation has been added and click on Refresh Data > With Prompt.
A new window will pop up which will allow you to make the desired changes in each of the transformations.
unfortunately it is NOT possible to reverse data table transformations.
it IS possible to undo the transformations with Edit>>Undo or CTRL+Z, but that's as far as it goes.
my strategy for dealing with this is (in accordance with your #3) to visit Edit>>Data Table Properties, select the table I'm interested in, select Source Information, then copy the contents of the textarea and paste it into notepad. then, I'll File>>Replace Data Table and start over from the beginning while keeping the notepad open so I don't miss any steps.
I realize it's not ideal, but there is unfortunately not another way.

JQGrid row selection

Hi
When i try to use JQGrid and load values from server (JSON load) , everything seems to work fine except that any row i click ,only the first rwo is selected. Any pointers as to where i could be going wrong?
Thanks
Sunil
Typically the problem exist if the JSON data has duplicate in the ids. For example if you place the same id in every row posted from the server you will have exactly the same behavior which you describe.

Resources