Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Clear parameter values on Tables

35 views7 hours agodriver option protocol.leave SetParameterDescription
0
Jose Araujo [DevOps Member]86 1 day ago 0 Comments

Hi

I need to clear table 1100 — that is, delete all its values.
I tried running this QAction, but it didn't work.

1100 is table

1001 is parameter

1002 is parameter

1003 is parameter

1004 is parameter
#####################################
(This part of QAction delete table)

object[] columnClearInfo = { 1100, 1101, 1102, 1103, 1104 };

object[] columnClearValues = {

newobject[0], // PK

newobject[0], // UUID

newobject[0], // Name

newobject[0], // State

newobject[0], // Chunking

};

protocol.NotifyProtocol(220, columnClearInfo, columnClearValues);
#####################################
<Paramid="1101">

<Name>ServiceTableUUID</Name>

<Description>UID</Description>

<Type>read</Type>

<Interprete>

<RawType>other</RawType>

<Type>string</Type>

<LengthType>next param</LengthType>

</Interprete>

<Display>

<RTDisplay>true</RTDisplay>

</Display>

<Measurement>

<Type>string</Type>

</Measurement>

</Param>

<Paramid="1102">

<Name>ServiceTableService</Name>

<Description>Service Name</Description>

<Type>read</Type>

<Interprete>

<RawType>other</RawType>

<Type>string</Type>

<LengthType>next param</LengthType>

</Interprete>

<Display>

<RTDisplay>true</RTDisplay>

</Display>

<Measurement>

<Type>string</Type>

</Measurement>

</Param>

<Paramid="1103">

<Name>ServiceTableStateService</Name>

<Description>Service Status</Description>

<Type>read</Type>

<Interprete>

<RawType>other</RawType>

<Type>string</Type>

<LengthType>next param</LengthType>

</Interprete>

<Display>

<RTDisplay>true</RTDisplay>

</Display>

<Measurement>

<Type>string</Type>

</Measurement>

</Param>

<Paramid="1104">

<Name>ServiceTablechunk</Name>

<Description>Chunk</Description>

<Type>read</Type>

<Interprete>

<RawType>other</RawType>

<Type>string</Type>

<LengthType>next param</LengthType>

</Interprete>

<Display>

<RTDisplay>true</RTDisplay>

</Display>

<Measurement>

<Type>string</Type>

</Measurement>

</Param>

<Paramid="1100"trending="true">

<Name>ServiceTable</Name>

<Description>Table Of Services</Description>

<Type>array</Type>

<ArrayOptionsindex="0"options="key" >

<ColumnOptionidx="0"pid="1101"type="retrieved"options=";save" />

<ColumnOptionidx="1"pid="1102"type="retrieved"options=";save" />

<ColumnOptionidx="2"pid="1103"type="retrieved"options=";save" />

<ColumnOptionidx="3"pid="1104"type="retrieved"options=";save" />

</ArrayOptions>

<Information>

<Subtext>

<![CDATA[Table Of Services]]>

</Subtext>

</Information>

<Display>

<RTDisplay>true</RTDisplay>

<Positions>

<Position>

<Page>Services</Page>

<Column>0</Column>

<Row>0</Row>

</Position>

</Positions>

</Display>

<Measurement>

<Typeoptions="tab=columns:1101|0-1102|1-1103|2-1104|3,width:350-220-112-100,sort:STRING-STRING-STRING-STRING,lines:10,filter:true">table</Type>

</Measurement>

</Param>

Tiago Pina [SLC] [DevOps Advocate] Answered question 7 hours ago

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
0
Tiago Pina [SLC] [DevOps Advocate]399 Posted 7 hours ago 1 Comment

Hi Jose

When you want to clear an entire table, the most efficient approach is to use the clear action in the XML. This way, you don't need to retrieve all the keys in the QAction; you simply execute protocol.CheckTrigger(Id)

Regards

Jose Araujo [DevOps Member] Posted new comment 2 hours ago
Jose Araujo [DevOps Member] commented 2 hours ago

Hi Tiago,

I use this in my Qaction before fill columns
protocol.CheckTrigger(1100); //table
protocol.CheckTrigger(1101); //parameter1
protocol.CheckTrigger(1102); //parameter2
protocol.CheckTrigger(1103); ////parameter3

And in my XML
<Action id="9">
<Name>services</Name>
<On id="21">parameter</On>
<Type>clear</Type>
</Action>

But didn't work, when QAction is running add new line but no clean my table.

0
Miguel Obregon [SLC] [DevOps Catalyst]19.00K Posted 21 hours ago 1 Comment

Hi Jose,

To remove rows from a table, you could use the following methods:

  • Method ClearAllKeys
  • Method DeleteRow: In this case you need the index of the row. You can get the index of the row using GetKeys.

Hope it helps.

Jose Araujo [DevOps Member] Posted new comment 2 hours ago
Jose Araujo [DevOps Member] commented 2 hours ago

Hi Miguel,

I use protocol.ClearAllKeys(1100); but no clear the table.

Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin