Want to get rid of Google Ads, click here.
+ Reply to Thread
Results 1 to 9 of 9

Thread: launch link/fill when incident created by event

  1. #1
    Junior Member
    Join Date
    Mar 2002
    Location
    Belgium
    Posts
    21

    Unhappy launch link/fill when incident created by event

    Hi,
    I have the following problem:
    - I want to create an incident via the event process. This is working correctly, the only thing that doesn't work is filling in the data from the contact.
    In my event I have specified the contact.name, now I want that all contact information is filled out when the incident is created.

    In foreground it is working (so when I do manually a fill), but not in background.

    In the "open" format control I've specified a subroutine.
    Application: fill.fc
    Record: $file
    Text: contact.name
    string1: probsummary
    Add: true
    Before: true
    Init: $L.void=rtecall("log",$L.rc,"FC INIT") -> this to have some debug information in my log files

    In the probsummary link used above, I've added also some debug information in the pre-expressions: $L.void=rtecall("log",$L.rc,"FC LINK START") -> this to have some debugging.

    My logfiles show only the FC INIT but not the FC LINK START. Thus for me an indication that it never gets to the link described in the fill.fc rad.

    How do I get the link working when executed in background?

  2. #2
    Senior Member fid509's Avatar
    Join Date
    Feb 2002
    Location
    Brussels
    Posts
    381

    Default

    Yves,

    I think you have to change your fill.fc to:
    text: probsummary --> name of the link
    string1: contact.name --> name of the field in the link

    This is the way I do it.

    Geert

  3. #3
    Senior Member glg's Avatar
    Join Date
    Aug 2004
    Location
    Chicago, IL, USA
    Posts
    715

    Default

    Actually, OP has the parameters correct.

    record - file record passed in ($file)
    string1 - link name
    text - field name in link

    I'm confused as to why you're trying to do an RTEcall in the init condition. You don't want this run on init, you want it run on add. So, your init condition should be blank or false.

  4. #4
    Senior Member fid509's Avatar
    Join Date
    Feb 2002
    Location
    Brussels
    Posts
    381

    Default

    You're right,
    string1 = link name and text = field name
    I use the same principle to fill data in incidents created by events and it works. I don't have anything on init but I have put the same condition on update as on add. I'm not sure if this update condition is really needed or is a leftover from my testing?

  5. #5
    Junior Member
    Join Date
    Mar 2002
    Location
    Belgium
    Posts
    21

    Angry still not working

    The rtecall in init was set because the init is no real state, following the help on field it only sets initial values for variables and fields to pass to the RAD application specified in the Application field.

    I still don't get it working. This is what I tested

    1)
    I have in my "open" formatctrl record a subroutine for launching a link

    us.link -> makes use of the probsummary link.

    This for the contact.name, location, company and logical.name fields. They are only executed on "add" and "before"

    The "add" expression is always the same: not null(.... in $file)
    The "before" expression is always true

    2)
    I have an explicit FILL subroutine for the issue with the eventprocessing.

    fill.fc -> makes use of the problem.template.open link

    This for the contact.name
    The "add","update","display","before" expressions are always true


    I've added some debugging information to the link records to see wich link is executed at what moment:

    For the problem.template.open link:

    + At the beginning of the "pre-expressions"
    $L.void=rtecall("log", $L.rc, "*** probl.templ.open link - contact.name A *** - query="+nullsub($query, "empty"));

    + At the end of the "pre-expressions"
    $L.void=rtecall("log", $L.rc, "*** probl.templ.open link - contact.name B *** - query="+nullsub($query, "empty"));

    + At the beginning of the "post-expressions"
    $L.void=rtecall("log", $L.rc, "*** probl.templ.open link - contact.name C *** - query="+nullsub($query, "empty"));

    For the probsummary link:

    + At the beginning of the "pre-expressions"
    $L.void=rtecall("log", $L.rc, "*** probsummary link - contact.name A *** - query="+nullsub($query, "empty"));

    + At the end of the "pre-expressions"
    $L.void=rtecall("log", $L.rc, "*** probsummary link - contact.name B *** - query="+nullsub($query, "empty"));

    + At the beginning of the "post-expressions"
    $L.void=rtecall("log", $L.rc, "*** probsummary link - contact.name C *** - query="+nullsub($query, "empty"));

    Further I've added also debugging in the eventregistration and mapping:

    In the expression section of the eventregistration:
    $L.void=rtecall("log", $L.rc, "*** eventregistration - bgc_maximo_pmo ***")

    In the post-map instructions of the contact.name in the event mapping:
    $L.void=rtecall("log", $L.rc, "*** eventmap - contact.name filled in ***")


    I tested following:
    A) Event
    B) Manual creation of an incident via the quick form
    C) Manual creation of an incident via the open form


    A) The "event" incident creation shows:

    685 01/16/2006 12:47:34 *** eventregistration - bgc_maximo_pmo ***
    685 01/16/2006 12:47:34 *** eventmap - contact.name filled in***
    685 01/16/2006 12:47:35 Europe/Middle 16/01/06 12:47:35: Incident IM0000798 has been opened.

    CONCLUSION: contact information is not filled in

    B) The "quick" creation via the quickform shows:
    Note! for testing I only add the contact.name information

    11485 01/16/2006 12:55:41 *** probsummary link - contact.name A *** - query=empty
    11485 01/16/2006 12:55:41 *** probsummary link - contact.name B *** - query=contact.name # contact.name in $File and company="BGC" and (bgc.activedate>tod() or null(bgc.activedate))
    11485 01/16/2006 12:55:41 *** probsummary link - contact.name C *** - query=contact.name # contact.name in $File and company="BGC" and (bgc.activedate>tod() or null(bgc.activedate))

    CONCLUSION: contact information is filled in

    B) The "quick" creation via the quickform shows:
    Note! for testing I only add the contact.name information


    11485 01/16/2006 12:58:04 *** probl.templ.open link - contact.name A *** - query=empty contact=ID075643
    11485 01/16/2006 12:58:04 *** probl.templ.open link - contact.name B *** - query=contact.name # contact.name in $File and company=company in $File
    11485 01/16/2006 12:58:04 *** probl.templ.open link - contact.name C *** - query=contact.name # contact.name in $File and company=company in $File

    CONCLUSION: contact information is filled in

  6. #6
    Junior Member
    Join Date
    Feb 2006
    Location
    Tallahassee, Fl
    Posts
    1

    Default

    We are only on verison 5.1 but have many events that create and update records. One of them is to the Inventory Module and the system that creates the events does not house all the fields that are requried to add an device. We handle it this way. We added to the event registration on the Expressions tab.
    $void1=rtecall("rinit", $rc1, $location, "location");$query="location.code="+"\""+10 in $axces.fields+"\" and dcf.inactive=false";$void2=rtecall("select", $rc2, $location, $query)
    In the map field #10 is the location.code.
    Then in the map we have each of the fields need to filled in and in the nullsub field contains "field in $location" such as "location in $location."

    The only things that could cause problems is if you event record does not have the number of fields that the map has. What I mean is if you add 5 fields to the bottom of the map and the record is seperated by ^ then make sure the event ends with ^^^^^.

    I hope this works for you.

  7. #7
    Member
    Join Date
    Dec 2001
    Location
    United Kingdom
    Posts
    46

    Default I also can't get this to work

    I have tried this method for populating a Call record (axces.sm) from an input event in our V6.1 system. The Expression in the Event Registration is:
    $void1=rtecall("rinit", $rc1, $contacts, "contacts");$query="contact.name="+"\""+1 in $axces.fields+"\" and active~=false";$void2=rtecall("select", $rc2, $contacts, $query).
    contact.name is Position 1 in the Maps. Subsequent Maps use a value of "field in $contacts" in the Nullsub field. For example, first.name in $contacts. When I create the Input Event, the Fill does not happen, although my Format Control Validation does, so it asks for a First Name value, for example. Does anyone have any idea where the problem lies, or can help me to debug the event?

    Quote Originally Posted by dherman
    We are only on verison 5.1 but have many events that create and update records. One of them is to the Inventory Module and the system that creates the events does not house all the fields that are requried to add an device. We handle it this way. We added to the event registration on the Expressions tab.
    $void1=rtecall("rinit", $rc1, $location, "location");$query="location.code="+"\""+10 in $axces.fields+"\" and dcf.inactive=false";$void2=rtecall("select", $rc2, $location, $query)
    In the map field #10 is the location.code.
    Then in the map we have each of the fields need to filled in and in the nullsub field contains "field in $location" such as "location in $location."

    The only things that could cause problems is if you event record does not have the number of fields that the map has. What I mean is if you add 5 fields to the bottom of the map and the record is seperated by ^ then make sure the event ends with ^^^^^.

    I hope this works for you.

  8. #8
    Senior Member
    Join Date
    Jun 2002
    Location
    Germany
    Posts
    291

    Default

    Just an idea... did someone try to use us.link instead of fill.fc?
    Lars

  9. #9
    Member
    Join Date
    Dec 2001
    Location
    United Kingdom
    Posts
    46

    Default

    Just to let everyone know, I changed the $query statement to use nullsub and now it works fine.
    Quote Originally Posted by lomah
    I have tried this method for populating a Call record (axces.sm) from an input event in our V6.1 system. The Expression in the Event Registration is:
    $void1=rtecall("rinit", $rc1, $contacts, "contacts");$query="contact.name="+"\""+1 in $axces.fields+"\" and active~=false";$void2=rtecall("select", $rc2, $contacts, $query).
    contact.name is Position 1 in the Maps. Subsequent Maps use a value of "field in $contacts" in the Nullsub field. For example, first.name in $contacts. When I create the Input Event, the Fill does not happen, although my Format Control Validation does, so it asks for a First Name value, for example. Does anyone have any idea where the problem lies, or can help me to debug the event?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts