Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
punitpopli
Specialist
Specialist

Single field setting using API

Hi Experts,

I am working on an application where we have single field setting applied on 4 columns and when we applying the single filed setting using an API (Engine Explorer API) the process is getting failed.

Could anyone think of any potential cause of this issue?

Just to add the 3 out of 4 field are working as expected while the 4th one which has a good amount of data with only 4 distinct value (combination of number alphabet and -) is causing the issue. When I add the 4th filed the setting got failed for rest all the 3 fields is working fine

 

any help on this will be much appreciated

 

regards,

Punit

 

6 Replies
NadiaB
Support
Support

Hi @punitpopli 

It was not clear to me what is what you are trying to achieve, by any chance could you provide more details about what are the Engine API methods you are using and any details about the field affected? Does the field has different data type? length? 

Kind Regards.

Don't forget to mark as "Solution Accepted" the comment that resolves the question/issue. #ngm
punitpopli
Specialist
Specialist
Author

Thank you for your response

Below are the details on method and the sequence we are using - 

OpenDOc -> GetFIeld -> Select -> SetNxProperties -> DoSave

Only 1 single field is affected

Yes, field has different values which included number, (), - ,characters

NadiaB
Support
Support

Hi @punitpopli 

Do you have a sample app with some data to reproduce the issue?

When you mention that it fails, are you getting any error? or what is the abnormal behavior?

Kind Regards.

Don't forget to mark as "Solution Accepted" the comment that resolves the question/issue. #ngm
punitpopli
Specialist
Specialist
Author

Hi @NadiaB 

Sorry, but will be unable to share any app even with Sample data set.

No, we are not getting any error but the engine is getting crashed that we can view from the logs 

 

Not sure what exactly is causing this

NadiaB
Support
Support

Hi @punitpopli 

It doesn't necessary needs to be a copy of your app, it could be just an app with an inline statement and maybe some sample values (not real values) of what you would have in the app and steps to reproduce. 

But if that is not possible, my suggestion would be to open a case with our Support team, given that it works for other fields but not for an specific one it sounds like a possible Product Defect. 

By any chance could you remove the hyphen (-) probably replace it by blank space and verify the outcome? If you do not see the issue after removing the hyphen or any other special character could you let us know so we can verify and file a Product Defect? (We would need step by step you are following to reproduce the issue and any API method calls you are using.

If the suggestion above doesn't help, you could increase the engine log logging level to see if something is recorded in the logs when the issue occurs.

Hope it helps!

Don't forget to mark as "Solution Accepted" the comment that resolves the question/issue. #ngm
ar5
Partner - Contributor III
Partner - Contributor III

Hey,

I have this code which is not saving the properties (i.e., not one value is selected). Am I missing something?

   let qApp = await openQlikApp(enigmaConnectionAppSpecific, appNewAppId);
    await qApp.setAppProperties(qProperties);
    await writeQlikObjects(qApp);
    await qApp.setScript(LoadDataModel + Variables + Main);
    await qApp.doReload()
await qApp.getField("fieldname").then(field => {
      field.setNxProperties({
        "qProperties": { "qOneAndOnlyOne": true }
      })
    })
    await qApp.saveObjects();
    await qApp.doSave();