Override ALL Defaut Messages From SCL
 
Forums / SmartComponent Library - Developer Forum / Override ALL Defaut Messages From SCL

Override ALL Defaut Messages From SCL

9 posts, 2 answered
  1. Roger Blanchard
    Roger Blanchard avatar
    381 posts
    Registered:
    29 Jun 2018
    21 Dec 2018
    Link to this post
    We are in the process of moving our Tablet application to the SCL. We have a POC form working but need to be able to replace ALL default messages that appear on the client with our own message box. This would be any error, question, etc. This must be done as the tablet app is a touch screen application. The user does not have a mouse / keyboard and are using their finger. 

    Can this be done fairly easily? If so where would this be done? In our implementation of the ServiceAdapter.cls? 

    Any pointer would be great.

    Thanks in advance.
  2. Roger Blanchard
    Roger Blanchard avatar
    381 posts
    Registered:
    29 Jun 2018
    21 Dec 2018 in reply to Roger Blanchard
    Link to this post
    This may be helpful.

    http://documentation.consultingwerkcloud.com/display/SCL/Using+a+custom+Error+Message+Dialog+with+SmartComponent+Library+or+Consultingwerk+core+framework+based+applications

  3. Roger Blanchard
    Roger Blanchard avatar
    381 posts
    Registered:
    29 Jun 2018
    21 Dec 2018 in reply to Roger Blanchard
    Link to this post
    This looks like it will do what I need for errors. 

    I have the same need for the MessageForm
    . In reading the following it appears I can change/add buttons. Can I replace the entire form with my own?

    http://documentation.consultingwerkcloud.com/display/SCL/Using+custom+buttons+on+the+MessageForm
  4. Mike Fechner
    Mike Fechner avatar
    319 posts
    Registered:
    14 Sep 2016
    Answered
    21 Dec 2018
    Link to this post
    That would be the MessageFormType property of the Consultingwerk.Util.MessageFormHelper class.
  5. Roger Blanchard
    Roger Blanchard avatar
    381 posts
    Registered:
    29 Jun 2018
    21 Dec 2018 in reply to Mike Fechner
    Link to this post
    THIS IS GREAT!! 

    Consultingwerk.Util.MessageFormHelper:MessageFormType = "Osprey.Windows.Util.Forms.OspreyMessageForm". 

    Thanks...

    Merry Christmas!!
  6. Mike Fechner
    Mike Fechner avatar
    319 posts
    Registered:
    14 Sep 2016
    21 Dec 2018 in reply to Roger Blanchard
    Link to this post
    Merry Christmas, Roger!
  7. Roger Blanchard
    Roger Blanchard avatar
    381 posts
    Registered:
    29 Jun 2018
    21 Dec 2018 in reply to Mike Fechner
    Link to this post
    Can we override the MessageFormImages. It looks like this class is used for the images. I have created my own flavor but this class is referenced in quite a few classes. 
  8. Mike Fechner
    Mike Fechner avatar
    319 posts
    Registered:
    14 Sep 2016
    Answered
    21 Dec 2018
    Link to this post
    You can just assign other images to the static properties. No need override anything.
  9. Roger Blanchard
    Roger Blanchard avatar
    381 posts
    Registered:
    29 Jun 2018
    21 Dec 2018 in reply to Mike Fechner
    Link to this post
    okay, will do. thanks.
9 posts, 2 answered