can I insert a value into event? and how can do to it?

huamanzhuhuamanzhu Posts: 50
 I create my Rules  in the Rules designer,but it can't work.and I don't undestander,can I help me? thanks.
my code Rules is:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <ns3:RuleAssignment>
        <ns3:Target>I_CB_PEDAT</ns3:Target>
        <ns3:RuleRef OID="JK_1">
            <ns3:InsertAction IfExpressionEvaluates="true">
                <ns3:Run Batch="false" ImportDataEntry="false" DoubleDataEntry="false" InitialDataEntry="true" AdministrativeDataEntry="true"/>
                <ns3:DestinationProperty Value="ok" OID="SE_GG.F_CB_2517.IG_CB_PE2[1].I_CB_PETEST">
                    <ns3:ValueExpression></ns3:ValueExpression>
                </ns3:DestinationProperty>
            </ns3:InsertAction>
        </ns3:RuleRef>
    </ns3:RuleAssignment>
    <ns3:RuleDef Name="JK_1" OID="JK_1">
        <ns3:Description>JK_1</ns3:Description>
        <ns3:Expression>I_CB_PEDAT eq "" or I_CB_PEDAT ne ""</ns3:Expression>
    </ns3:RuleDef>
</ns3:Rules>
Tagged:

Comments

  • lindsay.stevenslindsay.stevens Posts: 403 ✭✭✭
    via Email
    In your last thread we established that you can't have a value attribute
    and a valueexpression at the same time for an insertaction
    destinationproperty.

    Additionally, insertaction, showaction and hideaction can only affect items
    or item groups in CRFs belonging to the same instance of an event as the
    ruleassignment target.

    That is, the target and the destination must be in the same event
    definition, as well as being in the same event repeat.

    If you want to copy values across events or event repeats, you will need to
    extract (using UI or REST) and import (using UI or SOAP) instead of an
    insertaction rule.
  • huamanzhuhuamanzhu Posts: 50
    via Email
    Hi stevens,
    I have a question ask for you.in this page:
    I set the defult value in this red item,but I can delete the defult value.now I dont want it be delete,how can do to it?it is just let it couldn't change or delete.
    regards,
    huamanzhu
This discussion has been closed.