Joel_Eisenstat

Member

Last active [hidden]

  1. yesterday
    Tue Jan 15 11:12:11 2019
    Joel_Eisenstat posted in CustomView background colour.

    Got it - CustomView6.backgroundColor = p -- works

  2. 2 days ago
    Mon Jan 14 11:22:47 2019
    Joel_Eisenstat posted in ImageView Rotation.

    The project is now working correctly but if I remember correctly a negative integer was introduced in the save function that caused the issue.

  3. Mon Jan 14 11:12:51 2019
    Joel_Eisenstat started the conversation CustomView background colour.

    Good morning,
    I am having difficulty in assigning a background colour to a CustomView for a computed property. Any direction is appreciated.
    Code snippet;
    get {
    return _procolour;
    }

    set {
    _procolour = value; // value = procedure text value

    func onSuccess(db,rs){

    var p = rs.colour; // hex colour
    if ( p == null ) {
    p = "000000FF"; // change null to clear (else runtime error)
    }

    Calendar.View2.TableView1.Cell1.CustomView6.alpha = 0.25;
    Calendar.View2.TableView1.Cell1.CustomView6.backgroundColor = p; // fails no change - F10000FF

    }
    func onError(db){

    }

    var sql = 'SELECT * FROM "Calendar_Procedures" WHERE "name" = $$\(_procolour)$$';
    PostgreSQL1.select(sql, onSuccess, onError);
    }

  4. last week
    Sun Jan 6 19:00:59 2019
    Joel_Eisenstat started the conversation Date string to date function.

    Converting a date to string is easy enough but string to date is problematic.

    var st = Date(start,"yyyy-MM-dd hh:mm","EST"); // convert back to date object

    start is string ----> 2019-01-08 07:00:00 +0000
    However st keeps giving the system date / time .
    Any direction is appreciated .
    Thanks
    Joel

  5. Thu Jan 3 11:05:38 2019
    Joel_Eisenstat started the conversation Multiple Gestures.

    Good morning,
    How can gestures be differentiated for a TouchesEnded event / GestureRecognizerState.Ended; within an ImageView ? I have a TapGesture method working to load an image but would like an animation with a LongGesture as well for the same object.
    Thanks

  6. Thu Jan 3 09:38:31 2019
    Joel_Eisenstat posted in ImageView Rotation.

    I'll do that but I think it was an anomaly from garbage data . I usually do not touch Transformations. While on the subject is it possible to assess the orientation of the device from Creo ( portrait vs landscape) ? I need to adjust the window for a wide x-ray ( Panographic) .

  7. Thu Jan 3 09:31:21 2019
    Joel_Eisenstat posted in Runtime error.

    Exactly . That would be great help, especially as I move to classes and a proper framework.

  8. Wed Jan 2 16:13:12 2019
    Joel_Eisenstat posted in Creo crash and Player Runtime Error.

    Got it - negative values crept into data file
    Apologies for waste of bandwidth ....

  9. Wed Jan 2 15:29:32 2019
    Joel_Eisenstat started the conversation ImageView Rotation.

    I have an odd situation where an image ( jpeg ) is saved it is rotated 90 degrees .
    Code is the same as previous ;
    var image1 = ImageView1.image.JPEGRepresentation(0.8);
    var image2 = image1.base64();
    and update is "document" = (decode($$\(image2)$$,\'base64\'))
    I checked if some garbage was added to ImageView1.image such as degrees but none were found.
    Any suggestions as to why to image was rotated.
    Thanks

  10. Wed Jan 2 14:37:53 2019
    Joel_Eisenstat posted in Creo crash and Player Runtime Error.

    Of course I think I found the issue 10 seconds after sending the messag. :(
    A missing index in the loadrecord method -> pats = rs.patid ;
    Seems to have solved the Simulator but still have the runtime error.

View more