Hello experts,

I want to fire some notifications to my UI whenever a specific table has its data modified, by a DML script execution, for example.

I know that I can listen to this type of notification when the table is modified by the synchronism process (using Observers), but I couldn't find anything like that for DML executions.

I've been using the UltraliteJ for Android, 12.0.1 (3605).

Is there any way to do that?

Best Regards,

asked 19 May '12, 16:12

Alex's gravatar image

Alex
1.0k153952
accept rate: 25%


FYI

UltraLiteJ for Android now supports system events for: (1) Table modifications, (2) Commits, (3) Synchronization completion.

This will first appear in 12.0.1.3792.

permanent link

answered 18 Sep '12, 15:37

Andy%20Quick's gravatar image

Andy Quick
2.2k2737
accept rate: 45%

Thank you so much, Andy. This is going to be awesome and very useful!

(07 Oct '12, 14:18) Alex

How do I use the functionality that was added in 12.0.1.3792? I'm particularly interested in detecting table modifications.

(11 Apr '13, 13:34) Gustavo

Alex,

This is the second recent request for this functionality for UltraLiteJ for Android. We do not currently expose the UltraLiteC table modification event in the Android library. We will add this to our list of features to support for Android. I cannot commit to a time frame, but the more customers that ask for it, the higher its priority will be.

Thanks you for the feedback.

permanent link

answered 22 May '12, 09:33

Andy%20Quick's gravatar image

Andy Quick
2.2k2737
accept rate: 45%

2

Hi,

I'm looking forward for this functionality. Please release it as soon as possible.

tks

(22 May '12, 12:14) Renato
1

Andy, DML notifications will help my application too! Thank you!

(22 May '12, 12:17) Ericsen Cioffi
1

Me too! Thanks!

(22 May '12, 12:20) marcelopapar...

The UltraLiteJ Android event mechanism is based on the C++ UltraLite feature:

    // Main Thread
    Connection conn;
    ...
    conn.registerForEvent( ULjEvent.TABLE_MODIFIED_EVENT, "TableA" );
    ...
    conn.unregisterForEvent( ULjEvent.TABLE_MODIFIED_EVENT, "TableA" );
    conn.cancelWaitForEvent();

// Event Handler Thread
    ULjEvent event;
    for(;;) {
        try {
            event = conn.waitForEvent( -1 );
            if( event == null ) break;
            // handle event
            if (event.getType() == ULjEvent.TABLE_MODIFIED_EVENT) {
                String table_name = event.getParameter( "table_name" );
            }
        }
        catch (ULjException e) {
        }
    }
permanent link

answered 11 Apr '13, 14:30

Andy%20Quick's gravatar image

Andy Quick
2.2k2737
accept rate: 45%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×75
×60
×30
×26
×3

question asked: 19 May '12, 16:12

question was seen: 1,367 times

last updated: 12 Apr '13, 07:10