How to set SECA Parameter default-value to NULL

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to set SECA Parameter default-value to NULL

Ben Major
I am trying to set a service entity condition action's attribute's default value to null but I can't figure out how. Does anyone know if this is possible?

Here is what I've tried so far:

Attempt 1
  <service name="importGlAccounts" engine="java" location="com.hotwaxmedia.dsi.migration.MigrationServices" invoke="importGlAccounts" auth="true" transaction-timeout="14400">
    <attribute name="glNumb" mode="IN" type="String" optional="true" default-value="null"/>
  </service>


Attempt 2
  <service name="importGlAccounts" engine="java" location="com.hotwaxmedia.dsi.migration.MigrationServices" invoke="importGlAccounts" auth="true" transaction-timeout="14400">
    <attribute name="glNumb" mode="IN" type="String" optional="true" default-value="${groovy: null}"/>
  </service>


Attempt 3
  <service name="importGlAccounts" engine="java" location="com.hotwaxmedia.dsi.migration.MigrationServices" invoke="importGlAccounts" auth="true" transaction-timeout="14400">
    <attribute name="glNumb" mode="IN" type="String" optional="true" default-value=""/>
  </service>


Attempt 4
  <service name="importGlAccounts" engine="java"
         location="com.hotwaxmedia.dsi.migration.MigrationServices" invoke="importGlAccounts" auth="true" transaction-timeout="14400">
    <description>Import GL Accounts from Legacy Oracle.</description>
    <attribute name="glNumb" mode="IN" type="String" optional="true">
      <default-value>
        <null xsi:nil="true"/>
      </default-value>
    </attribute>
  </service>
Reply | Threaded
Open this post in threaded view
|

Re: How to set SECA Parameter default-value to NULL

Jacques Le Roux
Administrator
Hi Ben ,

Your message has been moderated, else it would not have reached this Mailing List.

Please subscribe to the user ML for such questions and then use your email client.
See why here http://ofbiz.apache.org/mailing-lists.html.

You will get a better support, people can answer you on the ML.
The wider the audience the better the answers you might get.

Also it's more work for moderators who have to accept your messages as long as you have not subscribed.
I'll personally no longer accept them (other moderators still could).

Thanks

This said I hope someone will be able to help you :)

Welcome

Jacques

Le 29/03/2021 à 20:37, Ben Major a écrit :

> I am trying to set a service entity condition action's attribute's default value to null but I can't figure out how. Does anyone know if this is possible?
>
> Here is what I've tried so far:
>
> Attempt 1
>    <service name="importGlAccounts" engine="java" location="com.hotwaxmedia.dsi.migration.MigrationServices" invoke="importGlAccounts" auth="true" transaction-timeout="14400">
>      <attribute name="glNumb" mode="IN" type="String" optional="true" default-value="null"/>
>    </service>
>
>
> Attempt 2
>    <service name="importGlAccounts" engine="java" location="com.hotwaxmedia.dsi.migration.MigrationServices" invoke="importGlAccounts" auth="true" transaction-timeout="14400">
>      <attribute name="glNumb" mode="IN" type="String" optional="true" default-value="${groovy: null}"/>
>    </service>
>
>
> Attempt 3
>    <service name="importGlAccounts" engine="java" location="com.hotwaxmedia.dsi.migration.MigrationServices" invoke="importGlAccounts" auth="true" transaction-timeout="14400">
>      <attribute name="glNumb" mode="IN" type="String" optional="true" default-value=""/>
>    </service>
>
>
> Attempt 4
>    <service name="importGlAccounts" engine="java"
>           location="com.hotwaxmedia.dsi.migration.MigrationServices" invoke="importGlAccounts" auth="true" transaction-timeout="14400">
>      <description>Import GL Accounts from Legacy Oracle.</description>
>      <attribute name="glNumb" mode="IN" type="String" optional="true">
>        <default-value>
>          <null xsi:nil="true"/>
>        </default-value>
>      </attribute>
>    </service>