How to Hit URL using HTTP POST in TDL?

Discussion in 'Tally Developer' started by manjari m, Jul 18, 2014.

    
  1. manjari m

    manjari m New Member


    Hello Experts.,

    i am try to create a TDL for hitting URL using HTTP POST., but it's not working please anyone help me here i include my TDL code., please check this code and give me a solution for this.,

    [​IMG]

    TDL CODE:

    [#Menu:GatewayOfTally]
    Button:sms button

    [Button:sms button]
    Key:Alt+F7
    Title:"SMS"
    Action:HTTP Post:mad:@MyUrl1:ASCII:Request Report : Failure Report : Success Report
    Scope:Selected Lines

    ;; REQUEST REPORT

    [Report: Request Report]

    Form : Request Form

    [Form: Request Form]

    Parts : Request Part

    [Part: Request Part]

    Lines : Request Line
    Scroll : Vertical

    [Line: Request Line]

    Fields : Request Field

    [Field: Request Field]

    Set As : "REQUEST"

    ;; FAILURE REPORT

    [Report:Failure Report]

    Form : Failure Form

    [Form: Failure Form]

    Parts : Failure Part

    [Part: Failure Part]

    Lines : Failure Line

    [Line: Failure Line]

    Fields : Failure Field

    [Field: Failure Field]

    Set As : "Field"

    ;; SUCCESS REPORT

    [Report: Success Report]

    Form : Success Report

    [Form: Success Form]

    Part : Success Part
    Height : 100% Screen
    Width : 100% Screen

    [Part: Success Part]

    Lines : Success Line
    Repeat : Success Line : Parameter Collection
    Scroll : Vertical

    [Line: Success Line]

    Fields : Success Field
    Explode : Success Field

    [Field: Success Field]

    Set As : "SUCCESS"


    [System:Formula]
    MyUrl1:"http://localhost:9000"
     


  2. manjari m

    manjari m New Member


    please anyone help me!!! i don't know how to write tdl code for http post!!!
     


  3. manjari m

    manjari m New Member


    How to run following TDL code ? this code from TDL refernce manual.,

    [​IMG]
    if anyone know how to run this TDL ., please share with me., it's urgent for me.,
     


  4. admin

    admin Administrator Staff Member


    Please check the sample codes..
    It is very easy to understand.

    You need advanced knowledge in TDL to do this :)
     


Share This Page