Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Manual update

    I am using SQL datasourse on Power Edition. I have a log database table I need to add to. Will this work? it does not seem like the insert was issued.

    DataSource ds = DataSource.get("esd_log_history");
    Record logRecord = new Record();
    logRecord.setAttribute("status", "Request");
    logRecord.setAttribute("title", name);
    logRecord.setAttribute("description", "Request Downloading " + path);
    logRecord.setAttribute("product", productLine);
    logRecord.setAttribute("version", version);
    logRecord.setAttribute("company", ApplicationController.getInstance().getUser().getCompany());
    logRecord.setAttribute("user_added", ApplicationController.getInstance().getUser().getUserId());
    logRecord.setAttribute("user_added_date", new Date());

    ds.addData(logRecord);


    What is happening on the ds.addData call?

    Thanks,

    #2
    This is now working fine

    Comment

    Working...
    X