[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
Re: [ic] Delete row + Column does not exist
tamas.kohegyi@unforgettable.com wrote:
> New problem:
> I created this to check something is the row:
>
> [tag flag write]current_table[/tag]
> [perl tables="current_table"]
> $ref = $Db{current_table}; #set reference
> $cart_sku = $Values->{'filename'}; #this is the row we have to check
>
> #if record does not exist, we have to do something
> $ref->record_exists($cart_sku) or do { I_have_to_do_something; return; };
>
> #record exists.
> do some other checks in the row...
> [/perl]
>
Not sure why that would be happening, but you can force a soft failure.
[try]
[perl]
.
.
[/perl]
[/try]
[catch] # only executed if something went ary in the [try][/try] tag
I_have_to_do_something;
[/catch]
Think of this as a perl:
eval { }
if ($@) { }
pair.
--
Mark Johnson
Senior Developer - Professional Services
Red Hat, Inc.
E-Business Solutions
markj@redhat.com
703-456-2912
_______________________________________________
Interchange-users mailing list
Interchange-users@lists.akopia.com
http://lists.akopia.com/mailman/listinfo/interchange-users