Announcement

Collapse
No announcement yet.

OnApplicationInit Error

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • OnApplicationInit Error

    if i try to use sc_lookup onApplicationInit:

    sc_lookup(excel," SELECT id , email FROM jos_users
    WHERE id ='[idpdv]'");

    {email} = {excel[0][1]};

    if (substr ({email}, 0,2) == 'L#')
    {
    $disabilita = '1';
    }


    Fatal error: Call to a member function Execute() on a non-object in C:Programmi
    etmakev5wwwrootscriptcaseapp est...............
    on line 203

  • #2
    Re: OnApplicationInit Error

    Sir try to use this code in event onScriptInit please.

    Comment


    • #3
      Re: OnApplicationInit Error

      Same problem

      Comment


      • #4
        Re: OnApplicationInit Error

        Please, use {email} = ({excel}[0][1]);

        Best regards: - Reinhard -

        I use ScriptCase 8 Enterprise Edition, Version 8.(latest)

        Comment


        • #5
          Re: OnApplicationInit Error

          same error

          there is a bug in the menu.

          Comment


          • #6
            Re: OnApplicationInit Error

            [quote author=marcov link=topic=2280.msg7031#msg7031 date=1293031528]
            there is a bug in the menu.
            [/quote]

            This is by "design" ... You can't use sc_lookup in Menu-Events (see WebHelp => ScriptCase Macros / Events x Applications).

            A bug is this:

            Code:
            $test = "hello";
            in Menu -> Events -> onScriptInit. Generate Source and this error is shown:

            Fatal error: Call to undefined function nm_log_entry()
            Best regards: - Reinhard -

            I use ScriptCase 8 Enterprise Edition, Version 8.(latest)

            Comment


            • #7
              Re: OnApplicationInit Error

              [quote author=RHS link=topic=2280.msg7085#msg7085 date=1293096950]
              This is by "design" ... You can't use sc_lookup in Menu-Events (see WebHelp => ScriptCase Macros / Events x Applications).

              A bug is this:

              Code:
              $test = "hello";
              in Menu -> Events -> onScriptInit. Generate Source and this error is shown:

              Fatal error: Call to undefined function nm_log_entry()
              [/quote]

              This is really a bug, we already know about it and it will be fixed in next release.

              Comment


              • #8
                Re: OnApplicationInit Error

                its already fixed. will be released soon.

                Comment

                Working...
                X