dxl script to check if an attribute has no data in it

Tags: dxl doors
Question!

This is what i have so far.

Module m = current load view "Standard view" Object o = current

//column attribute Proposed Change insert(column 4) attribute(column 4, "Proposed Change") width(column 4, 100)

//column attribute Object Type insert(column 3) attribute(column 3, "Object Type") width(column 3, 100) string txt = "Requirement"

Filter f1 = contains(attribute "Object Type", txt, false, true) //===Filter "Requirement" in Object Type set f1 filtering on

This give me just my attributes i want to see for my first step.

Im trying to figure out how to do an if statement so that the Proposed Change column will only show if there is any text in that column. (i.e. if string is empty then dont display Proposed Change Column, but if string is not empty then display the column) otherwise it would show an infoBox "There are no Proposed Changes"

I am very new to all this and so far what ive done has been self taught/read from the dxl manual.

Could anyone help me out or point me in the right direction as to what i should do next? the maunal has been confusing me on this subject.



Answers

You're looking for "notNull" for this one -- see chapter 25: Display Control > Filters in the DXL manual. There are a lot of only-DXL not-other-language things in there, so it's worth skimming to see what you can do with it.

Here's how it might work:

Filter f_pc = notNull attribute "Proposed Change"
set f_pc
filtering on

And if you want to combine that with your other filter:

Filter f = f_pc && f1
set f
filtering on

Good luck with DXL. Try not to learn to much or else you'll be known as the DOORS Guy at work, and it's difficult to escape that.



It looks like a strange issue.

For now, I can suggest you do the following things:

  • Check if your *.jar file is executable. Type sudo chmod +x /opt/xxxx/xxxx-0.0.1.jar to be sure about that and start service again.
  • Try to copy *.jar file to /etc/init.d/ directory instead of creating link. Type cp /opt/xxxx/xxxx-0.0.1.jar /etc/init.d/ and start service again.

Let me know if it helped. If not, maybe we can figure out a different solution.

Regards



This video can help you solving your question :)
By: admin