Update Device table fileld from server code

Help
Anonymous
2013-02-22
2013-06-12
  • Anonymous - 2013-02-22

    This is general question.
    For example I has a tk10x server. (I have a custom tracker based on tk102 code).
    In Device table I add one field, for example FLD_newField. and put set/get function setNewField(String value), and String getNewFieldValue().

    In server tk10x code during parsing a string from tracker I must save "newField" (that I get from tracker) value to DB.

    How I can made this?

    Please help.

     
  • Eduardo Robles

    Eduardo Robles - 2013-02-23

    A general answer for a general question :)
    You should use then something like:
    Device.setNewField(StringValue);

    And then you should use something like
    Device.save();

    within a try { } sentence to effectively save the information.

    Cheers,
    Eduardo.

     
  • Anonymous - 2013-02-23

    Thank for reply.
    But I have a problem with Device.save function realization.
    Has OpenGTS simular function realization?

     
  • Anonymous - 2013-02-26

    Thank you. Its works without problems.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks