Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

Can a javascript function be called from a xbasic function?

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

    Can a javascript function be called from a xbasic function?

    Hi everyone,
    After doing everything I could to use javascript as little as possible, I now have an unusual situation.
    I need to a SOAP api which is going well, but when I convert the returned data to JSON, it gets messed up.
    A friend of mine wrote some javascript that fixes the mess in a hurry, but as the title , I don't know how to use
    a javascript function in the middle of a xbasic function.


    image.png

    ​Looking forward to responses.

    Gregg
    Gregg
    https://paiza.io is a great site to test and share sql code

    #2
    Look at the ​ word_subtract() function to fix it with Xbasic

    Comment


      #3
      It's a it like the post from Judith.
      I'll send an example.
      See our Hybrid Option here;
      https://hybridapps.example-software.com/


      Apologies to anyone I haven't managed to upset yet.
      You are held in a queue and I will get to you soon.

      Comment


        #4
        Hi Allen and Ted,

        I appreciate the responses, but I don't see how I can make word work for this situation.
        This time I put the entire object into the code below.
        This should all be one object, with the exception of the 2 arrays of objects.
        If there is something I'm missing I would love to be able to do this in xbasic, otherwise I somehow need to be able run this through that javascript function.
        For ease, I put the corrected object in it's own code block.
        It should be noted that most of the key/value pairs are not required to have data.

        Code:
        { "ShipQuoteNo" : { "__text" : "2922" }  , "Housebill" : { "__text" : "765" }  , "ShipmentDate" : { "__text" : "4/18/2024" }  , "ShipmentTime" : { "__text" : "11:30:00 AM" }  , "ScheduledDeliveryDate" : { "__text" : "4/19/2024" }  , "ScheduledDeliveryTime" : { "__text" : "8:00:00 AM" }  , "PODName" : { "__text" : "SANTA KLAUS" }  , "PODDate" : { "__text" : "4/19/2024" }  , "PODTime" : { "__text" : "7:06:00 AM" }  , "ShipperNo" : {  }  , "ShipperName" : { "__text" : "ACME CORPORATION" }  , "ShipperAddress1" : { "__text" : "766 EASY DRIVE" }  , "ShipperAddress2" : { "__text" : "" }  , "ShipperCity" : { "__text" : "ASHIPUN" }  , "ShipperState" : { "__text" : "WI" }  , "ShipperZip" : { "__text" : "90210" }  , "ShipperContact" : {  }  , "ShipperPhone" : { "__text" : "555-987-5432" }  , "ShipperCountry" : { "__text" : "US" }  , "ShipperEmail" : {  }  , "ShipperFax" : { "__text" : "" }  , "ConsigneeNo" : {  }  , "ConsigneeName" : { "__text" : "COYOTES UNLIMITED" }  , "ConsigneeAddress1" : { "__text" : "123 EASY STREET" }  , "ConsigneeAddress2" : {  }  , "ConsigneeCity" : { "__text" : "STONE MOUNTAIN" }  , "ConsigneeState" : { "__text" : "GA" }  , "ConsigneeZip" : { "__text" : "30083" }  , "ConsigneeContact" : {  }  , "ConsigneePhone" : { "__text" : "SANTA" }  , "ConsigneeCountry" : { "__text" : "US" }  , "ConsigneeEmail" : {  }  , "ConsigneeFax" : {  }  , "ServiceLevel" : { "__text" : "EX" }  , "Pieces" : { "__text" : "1" }  , "ChargeableWeight" : { "__text" : "488.0" }  , "References" : { "Reference" : { "CustType" : { "__text" : "B" }  , "RefNo" : { "__text" : "ABCDEF" }  , "RefType" : { "__text" : "FHB" }  }  }  , "Status" : { "__text" : "DEL" }  , "Station" : { "__text" : "ABC" }  , "ShipmentMode" : { "__text" : "Domestic" }  , "AirlineName" : {  }  , "FlightNo" : {  }  , "MAWB" : {  }  , "ContainType" : {  }  , "ContainNumbers" : {  }  , "SteamShip" : {  }  , "Vessel" : {  }  , "MOBL" : {  }  , "CubicFeet" : {  }  , "CubicMeters" : {  }  , "ETAEntryDate" : {  }  , "ETAFinalDate" : {  }  , "LastFreeDate" : {  }  , "OriginHouseBill" : {  }  , "LoadPort" : {  }  , "DestinationPort" : {  }  , "ControllingCustomerNo" : { "__text" : "393939" }  , "BillToNo" : { "__text" : "393939" }  , "ActualWeight" : { "__text" : "488.0" }  , "WeightUOM" : { "__text" : "LB" }  , "TrackingNotes" : { "TrackingNote" :  [ { "StatusUpdatedOn" : { "__text" : "4/19/2024 7:09:42 AM" }  , "Note" : { "__text" : "Email Status Notification Sent" }  }  , { "StatusUpdatedOn" : { "__text" : "4/19/2024 7:09:03 AM" }  , "Note" : { "__text" : "Email Status Notification Sent" }  }  , { "StatusUpdatedOn" : { "__text" : "4/19/2024 7:06:00 AM" }  , "Note" : { "__text" : "Signed for By: SANTA KLAUS 7:06:00 AM 4/19/2024" }  }  , { "StatusUpdatedOn" : { "__text" : "4/19/2024 5:05:00 AM" }  , "Note" : { "__text" : "Shipment Status changed to: Arrived at Delivery Location" }  }  , { "StatusUpdatedOn" : { "__text" : "4/18/2024 12:46:35 PM" }  , "Note" : { "__text" : "Email Status Notification Sent" }  }  , { "StatusUpdatedOn" : { "__text" : "4/18/2024 12:46:28 PM" }  , "Note" : { "__text" : "Email Status Notification Sent" }  }  , { "StatusUpdatedOn" : { "__text" : "4/18/2024 12:46:00 PM" }  , "Note" : { "__text" : "Shipment Status changed to: Out for Delivery" }  }  , { "StatusUpdatedOn" : { "__text" : "4/18/2024 12:46:00 PM" }  , "Note" : { "__text" : "Shipment Status changed to: Shipment Picked Up" }  }  , { "StatusUpdatedOn" : { "__text" : "4/18/2024 12:07:15 PM" }  , "Note" : { "__text" : "Email Status Notification Sent" }  }  , { "StatusUpdatedOn" : { "__text" : "4/18/2024 12:00:00 PM" }  , "Note" : { "__text" : "Shipment Status changed to: Arrived at Pickup Location" }  }  , { "StatusUpdatedOn" : { "__text" : "4/18/2024 11:02:04 AM" }  , "Note" : { "__text" : "Shipment Status changed to: DPU" }  }  , { "StatusUpdatedOn" : { "__text" : "4/18/2024 10:38:50 AM" }  , "Note" : { "__text" : "Shipment created via web service." }  }  ]  }  , "TotalMiles" : { "__text" : "0" }  , "TotalCharge" : { "__text" : "9000.00" }  , "EquipmentType" : { "__text" : "SPRINTER" }  , "SpecialInstructions" : { "__text" : "SPRINTER" }  , "PickupInstructions" : {  }  , "DeliveryInstructions" : {  }  , "OrigAirport" : { "__text" : "ORD" }  , "DestAirport" : { "__text" : "ATL" }  , "InsuredValue" : { "__text" : "0.0000" }  , "FreightInfo" : { "ShipmentInquiryDetailV2" : { "PieceType" : {  }  , "FreightClass" : {  }  , "Description" : { "__text" : "NONEYA" }  , "Hazmat" : { "__text" : "false" }  , "Pieces" : { "__text" : "1" }  , "Weight" : { "__text" : "488" }  , "Length" : { "__text" : "124" }  , "Width" : { "__text" : "52" }  , "Height" : { "__text" : "11" }  }  }  , "Charges" : { "ShipmentInquiryChargesV2" :  [ { "Code" : { "__text" : "QRS" }  , "Description" : { "__text" : "STUFF" }  , "Amount" : { "__text" : "8000.00" }  }  , { "Code" : { "__text" : "FUEL" }  , "Description" : { "__text" : "Fuel - STANDARD" }  , "Amount" : { "__text" : "1000.00" }  }  ]  }  , "Costs" : {  }  , "TermCode" : { "__text" : "3" }  , "ConsolNo" : {  }  }
        This is what the result should be.
        Code:
        {"ShipQuoteNo":"2922","Housebill":"765","ShipmentDate":"4/18/2024","ShipmentTime":"11:30:00 AM","ScheduledDeliveryDate":"4/19/2024","ScheduledDeliveryTime":"8:00:00 AM","PODName":"SANTA KLAUS","PODDate":"4/19/2024","PODTime":"7:06:00 AM","ShipperNo":"","ShipperName":"ACME CORPORATION","ShipperAddress1":"766 EASY DRIVE","ShipperAddress2":"","ShipperCity":"ASHIPUN","ShipperState":"WI","ShipperZip":"90210","ShipperContact":"","ShipperPhone":"555-987-5432","ShipperCountry":"US","ShipperEmail":"","ShipperFax":"","ConsigneeNo":"","ConsigneeName":"COYOTES UNLIMITED","ConsigneeAddress1":"123 EASY STREET","ConsigneeAddress2":"","ConsigneeCity":"STONE MOUNTAIN","ConsigneeState":"GA","ConsigneeZip":"30083","ConsigneeContact":"","ConsigneePhone":"SANTA","ConsigneeCountry":"US","ConsigneeEmail":"","ConsigneeFax":"","ServiceLevel":"EX","Pieces":"1","ChargeableWeight":"488.0","References":{"Reference":{"CustType":"B","RefNo":"ABCDEF","RefType":"FHB"}},"Status":"DEL","Station":"ABC","ShipmentMode":"Domestic","AirlineName":"","FlightNo":"","MAWB":"","ContainType":"","ContainNumbers":"","SteamShip":"","Vessel":"","MOBL":"","CubicFeet":"","CubicMeters":"","ETAEntryDate":"","ETAFinalDate":"","LastFreeDate":"","OriginHouseBill":"","LoadPort":"","DestinationPort":"","ControllingCustomerNo":"393939","BillToNo":"393939","ActualWeight":"488.0","WeightUOM":"LB","TrackingNotes":{"TrackingNote":[{"StatusUpdatedOn":"4/19/2024 7:09:42 AM","Note":"Email Status Notification Sent"},{"StatusUpdatedOn":"4/19/2024 7:09:03 AM","Note":"Email Status Notification Sent"},{"StatusUpdatedOn":"4/19/2024 7:06:00 AM","Note":"Signed for By: SANTA KLAUS 7:06:00 AM 4/19/2024"},{"StatusUpdatedOn":"4/19/2024 5:05:00 AM","Note":"Shipment Status changed to: Arrived at Delivery Location"},{"StatusUpdatedOn":"4/18/2024 12:46:35 PM","Note":"Email Status Notification Sent"},{"StatusUpdatedOn":"4/18/2024 12:46:28 PM","Note":"Email Status Notification Sent"},{"StatusUpdatedOn":"4/18/2024 12:46:00 PM","Note":"Shipment Status changed to: Out for Delivery"},{"StatusUpdatedOn":"4/18/2024 12:46:00 PM","Note":"Shipment Status changed to: Shipment Picked Up"},{"StatusUpdatedOn":"4/18/2024 12:07:15 PM","Note":"Email Status Notification Sent"},{"StatusUpdatedOn":"4/18/2024 12:00:00 PM","Note":"Shipment Status changed to: Arrived at Pickup Location"},{"StatusUpdatedOn":"4/18/2024 11:02:04 AM","Note":"Shipment Status changed to: DPU"},{"StatusUpdatedOn":"4/18/2024 10:38:50 AM","Note":"Shipment created via web service."}]},"TotalMiles":"0","TotalCharge":"9000.00","EquipmentType":"SPRINTER","SpecialInstructions":"SPRINTER","PickupInstructions":"","DeliveryInstructions":"","OrigAirport":"ORD","DestAirport":"ATL","InsuredValue":"0.0000","FreightInfo":{"ShipmentInquiryDetailV2":{"PieceType":"","FreightClass":"","Description":"NONEYA","Hazmat":"false","Pieces":"1","Weight":"488","Length":"124","Width":"52","Height":"11"}},"Charges":{"ShipmentInquiryChargesV2":[{"Code":"QRS","Description":"STUFF","Amount":"8000.00"},{"Code":"FUEL","Description":"Fuel - STANDARD","Amount":"1000.00"}]},"Costs":"","TermCode":"3","ConsolNo":""}
        Gregg
        https://paiza.io is a great site to test and share sql code

        Comment


          #5
          Show us the tble structure please.
          Or, create a long Calculared Field by concatenation of the data, with appropriate dividers.
          Last edited by Ted Giles; 04-21-2024, 11:33 AM.
          See our Hybrid Option here;
          https://hybridapps.example-software.com/


          Apologies to anyone I haven't managed to upset yet.
          You are held in a queue and I will get to you soon.

          Comment


            #6
            If only it was from something I had control of.
            The source data is from a soap api.
            The code directly below this converts the xml to json.
            The code below is the data format returned by the api.



            Code:
            debug(1)
            xmlBody = strtran(xmlBody,"<airbill>",ab)
            settings.body = xmlBody
            xmlResult = HTTP_FETCH(settings)
            xmlJSON = json_generate(xmlResult)
            fckedJSON = json_from_xml(a5_extract_advance(xmljson,"<ShipmentInquiryV3>","</ShipmentInquiryV3>"))
            debug(1)​

            Code:
            [FONT="Courier New"][COLOR=#000000]HTTP/1.1 200 OK
            <TrackingNo>[COLOR=darkblue]string[/COLOR]</TrackingNo>
            <Message>[COLOR=darkblue]string[/COLOR]</Message>
            <ShipInqOutput>
            <ShipmentInquiryV3>
            <ShipQuoteNo>[COLOR=darkblue]int[/COLOR]</ShipQuoteNo>
            <Housebill>[COLOR=darkblue]string[/COLOR]</Housebill>
            <ShipmentDate>[COLOR=darkblue]string[/COLOR]</ShipmentDate>
            <ShipmentTime>[COLOR=darkblue]string[/COLOR]</ShipmentTime>
            <ScheduledDeliveryDate>[COLOR=darkblue]string[/COLOR]</ScheduledDeliveryDate>
            <ScheduledDeliveryTime>[COLOR=darkblue]string[/COLOR]</ScheduledDeliveryTime>
            <PODName>[COLOR=darkblue]string[/COLOR]</PODName>
            <PODDate>[COLOR=darkblue]string[/COLOR]</PODDate>
            <PODTime>[COLOR=darkblue]string[/COLOR]</PODTime>
            <ShipperNo>[COLOR=darkblue]string[/COLOR]</ShipperNo>
            <ShipperName>[COLOR=darkblue]string[/COLOR]</ShipperName>
            <ShipperAddress1>[COLOR=darkblue]string[/COLOR]</ShipperAddress1>
            <ShipperAddress2>[COLOR=darkblue]string[/COLOR]</ShipperAddress2>
            <ShipperCity>[COLOR=darkblue]string[/COLOR]</ShipperCity>
            <ShipperState>[COLOR=darkblue]string[/COLOR]</ShipperState>
            <ShipperZip>[COLOR=darkblue]string[/COLOR]</ShipperZip>
            <ShipperContact>[COLOR=darkblue]string[/COLOR]</ShipperContact>
            <ShipperPhone>[COLOR=darkblue]string[/COLOR]</ShipperPhone>
            <ShipperCountry>[COLOR=darkblue]string[/COLOR]</ShipperCountry>
            <ShipperEmail>[COLOR=darkblue]string[/COLOR]</ShipperEmail>
            <ShipperFax>[COLOR=darkblue]string[/COLOR]</ShipperFax>
            <ConsigneeNo>[COLOR=darkblue]string[/COLOR]</ConsigneeNo>
            <ConsigneeName>[COLOR=darkblue]string[/COLOR]</ConsigneeName>
            <ConsigneeAddress1>[COLOR=darkblue]string[/COLOR]</ConsigneeAddress1>
            <ConsigneeAddress2>[COLOR=darkblue]string[/COLOR]</ConsigneeAddress2>
            <ConsigneeCity>[COLOR=darkblue]string[/COLOR]</ConsigneeCity>
            <ConsigneeState>[COLOR=darkblue]string[/COLOR]</ConsigneeState>
            <ConsigneeZip>[COLOR=darkblue]string[/COLOR]</ConsigneeZip>
            <ConsigneeContact>[COLOR=darkblue]string[/COLOR]</ConsigneeContact>
            <ConsigneePhone>[COLOR=darkblue]string[/COLOR]</ConsigneePhone>
            <ConsigneeCountry>[COLOR=darkblue]string[/COLOR]</ConsigneeCountry>
            <ConsigneeEmail>[COLOR=darkblue]string[/COLOR]</ConsigneeEmail>
            <ConsigneeFax>[COLOR=darkblue]string[/COLOR]</ConsigneeFax>
            <ServiceLevel>[COLOR=darkblue]string[/COLOR]</ServiceLevel>
            <Pieces>[COLOR=darkblue]string[/COLOR]</Pieces>
            <ChargeableWeight>[COLOR=darkblue]string[/COLOR]</ChargeableWeight>
            <References xsi:nil="true" />
            <Status>[COLOR=darkblue]string[/COLOR]</Status>
            <Station>[COLOR=darkblue]string[/COLOR]</Station>
            <ShipmentMode>[COLOR=darkblue]string[/COLOR]</ShipmentMode>
            <AirlineName>[COLOR=darkblue]string[/COLOR]</AirlineName>
            <FlightNo>[COLOR=darkblue]string[/COLOR]</FlightNo>
            <MAWB>[COLOR=darkblue]string[/COLOR]</MAWB>
            <ContainType>[COLOR=darkblue]string[/COLOR]</ContainType>
            <ContainNumbers>[COLOR=darkblue]string[/COLOR]</ContainNumbers>
            <SteamShip>[COLOR=darkblue]string[/COLOR]</SteamShip>
            <Vessel>[COLOR=darkblue]string[/COLOR]</Vessel>
            <MOBL>[COLOR=darkblue]string[/COLOR]</MOBL>
            <CubicFeet>[COLOR=darkblue]string[/COLOR]</CubicFeet>
            <CubicMeters>[COLOR=darkblue]string[/COLOR]</CubicMeters>
            <ETAEntryDate>[COLOR=darkblue]string[/COLOR]</ETAEntryDate>
            <ETAFinalDate>[COLOR=darkblue]string[/COLOR]</ETAFinalDate>
            <LastFreeDate>[COLOR=darkblue]string[/COLOR]</LastFreeDate>
            <OriginHouseBill>[COLOR=darkblue]string[/COLOR]</OriginHouseBill>
            <LoadPort>[COLOR=darkblue]string[/COLOR]</LoadPort>
            <DestinationPort>[COLOR=darkblue]string[/COLOR]</DestinationPort>
            <ControllingCustomerNo>[COLOR=darkblue]string[/COLOR]</ControllingCustomerNo>
            <BillToNo>[COLOR=darkblue]string[/COLOR]</BillToNo>
            <ActualWeight>[COLOR=darkblue]decimal[/COLOR]</ActualWeight>
            <WeightUOM>[COLOR=darkblue]string[/COLOR]</WeightUOM>
            <TrackingNotes xsi:nil="true" />
            <TotalMiles>[COLOR=darkblue]int[/COLOR]</TotalMiles>
            <TotalCharge>[COLOR=darkblue]decimal[/COLOR]</TotalCharge>
            <EquipmentType>[COLOR=darkblue]string[/COLOR]</EquipmentType>
            <SpecialInstructions>[COLOR=darkblue]string[/COLOR]</SpecialInstructions>
            <PickupInstructions>[COLOR=darkblue]string[/COLOR]</PickupInstructions>
            <DeliveryInstructions>[COLOR=darkblue]string[/COLOR]</DeliveryInstructions>
            <OrigAirport>[COLOR=darkblue]string[/COLOR]</OrigAirport>
            <DestAirport>[COLOR=darkblue]string[/COLOR]</DestAirport>
            <InsuredValue>[COLOR=darkblue]decimal[/COLOR]</InsuredValue>
            <FreightInfo xsi:nil="true" />
            <Charges xsi:nil="true" />
            <Costs xsi:nil="true" />
            <TermCode>[COLOR=darkblue]string[/COLOR]</TermCode>
            <ConsolNo>[COLOR=darkblue]string[/COLOR]</ConsolNo>
            </ShipmentInquiryV3>
            <ShipmentInquiryV3>
            <ShipQuoteNo>[COLOR=darkblue]int[/COLOR]</ShipQuoteNo>
            <Housebill>[COLOR=darkblue]string[/COLOR]</Housebill>
            <ShipmentDate>[COLOR=darkblue]string[/COLOR]</ShipmentDate>
            <ShipmentTime>[COLOR=darkblue]string[/COLOR]</ShipmentTime>
            <ScheduledDeliveryDate>[COLOR=darkblue]string[/COLOR]</ScheduledDeliveryDate>
            <ScheduledDeliveryTime>[COLOR=darkblue]string[/COLOR]</ScheduledDeliveryTime>
            <PODName>[COLOR=darkblue]string[/COLOR]</PODName>
            <PODDate>[COLOR=darkblue]string[/COLOR]</PODDate>
            <PODTime>[COLOR=darkblue]string[/COLOR]</PODTime>
            <ShipperNo>[COLOR=darkblue]string[/COLOR]</ShipperNo>
            <ShipperName>[COLOR=darkblue]string[/COLOR]</ShipperName>
            <ShipperAddress1>[COLOR=darkblue]string[/COLOR]</ShipperAddress1>
            <ShipperAddress2>[COLOR=darkblue]string[/COLOR]</ShipperAddress2>
            <ShipperCity>[COLOR=darkblue]string[/COLOR]</ShipperCity>
            <ShipperState>[COLOR=darkblue]string[/COLOR]</ShipperState>
            <ShipperZip>[COLOR=darkblue]string[/COLOR]</ShipperZip>
            <ShipperContact>[COLOR=darkblue]string[/COLOR]</ShipperContact>
            <ShipperPhone>[COLOR=darkblue]string[/COLOR]</ShipperPhone>
            <ShipperCountry>[COLOR=darkblue]string[/COLOR]</ShipperCountry>
            <ShipperEmail>[COLOR=darkblue]string[/COLOR]</ShipperEmail>
            <ShipperFax>[COLOR=darkblue]string[/COLOR]</ShipperFax>
            <ConsigneeNo>[COLOR=darkblue]string[/COLOR]</ConsigneeNo>
            <ConsigneeName>[COLOR=darkblue]string[/COLOR]</ConsigneeName>
            <ConsigneeAddress1>[COLOR=darkblue]string[/COLOR]</ConsigneeAddress1>
            <ConsigneeAddress2>[COLOR=darkblue]string[/COLOR]</ConsigneeAddress2>
            <ConsigneeCity>[COLOR=darkblue]string[/COLOR]</ConsigneeCity>
            <ConsigneeState>[COLOR=darkblue]string[/COLOR]</ConsigneeState>
            <ConsigneeZip>[COLOR=darkblue]string[/COLOR]</ConsigneeZip>
            <ConsigneeContact>[COLOR=darkblue]string[/COLOR]</ConsigneeContact>
            <ConsigneePhone>[COLOR=darkblue]string[/COLOR]</ConsigneePhone>
            <ConsigneeCountry>[COLOR=darkblue]string[/COLOR]</ConsigneeCountry>
            <ConsigneeEmail>[COLOR=darkblue]string[/COLOR]</ConsigneeEmail>
            <ConsigneeFax>[COLOR=darkblue]string[/COLOR]</ConsigneeFax>
            <ServiceLevel>[COLOR=darkblue]string[/COLOR]</ServiceLevel>
            <Pieces>[COLOR=darkblue]string[/COLOR]</Pieces>
            <ChargeableWeight>[COLOR=darkblue]string[/COLOR]</ChargeableWeight>
            <References xsi:nil="true" />
            <Status>[COLOR=darkblue]string[/COLOR]</Status>
            <Station>[COLOR=darkblue]string[/COLOR]</Station>
            <ShipmentMode>[COLOR=darkblue]string[/COLOR]</ShipmentMode>
            <AirlineName>[COLOR=darkblue]string[/COLOR]</AirlineName>
            <FlightNo>[COLOR=darkblue]string[/COLOR]</FlightNo>
            <MAWB>[COLOR=darkblue]string[/COLOR]</MAWB>
            <ContainType>[COLOR=darkblue]string[/COLOR]</ContainType>
            <ContainNumbers>[COLOR=darkblue]string[/COLOR]</ContainNumbers>
            <SteamShip>[COLOR=darkblue]string[/COLOR]</SteamShip>
            <Vessel>[COLOR=darkblue]string[/COLOR]</Vessel>
            <MOBL>[COLOR=darkblue]string[/COLOR]</MOBL>
            <CubicFeet>[COLOR=darkblue]string[/COLOR]</CubicFeet>
            <CubicMeters>[COLOR=darkblue]string[/COLOR]</CubicMeters>
            <ETAEntryDate>[COLOR=darkblue]string[/COLOR]</ETAEntryDate>
            <ETAFinalDate>[COLOR=darkblue]string[/COLOR]</ETAFinalDate>
            <LastFreeDate>[COLOR=darkblue]string[/COLOR]</LastFreeDate>
            <OriginHouseBill>[COLOR=darkblue]string[/COLOR]</OriginHouseBill>
            <LoadPort>[COLOR=darkblue]string[/COLOR]</LoadPort>
            <DestinationPort>[COLOR=darkblue]string[/COLOR]</DestinationPort>
            <ControllingCustomerNo>[COLOR=darkblue]string[/COLOR]</ControllingCustomerNo>
            <BillToNo>[COLOR=darkblue]string[/COLOR]</BillToNo>
            <ActualWeight>[COLOR=darkblue]decimal[/COLOR]</ActualWeight>
            <WeightUOM>[COLOR=darkblue]string[/COLOR]</WeightUOM>
            <TrackingNotes xsi:nil="true" />
            <TotalMiles>[COLOR=darkblue]int[/COLOR]</TotalMiles>
            <TotalCharge>[COLOR=darkblue]decimal[/COLOR]</TotalCharge>
            <EquipmentType>[COLOR=darkblue]string[/COLOR]</EquipmentType>
            <SpecialInstructions>[COLOR=darkblue]string[/COLOR]</SpecialInstructions>
            <PickupInstructions>[COLOR=darkblue]string[/COLOR]</PickupInstructions>
            <DeliveryInstructions>[COLOR=darkblue]string[/COLOR]</DeliveryInstructions>
            <OrigAirport>[COLOR=darkblue]string[/COLOR]</OrigAirport>
            <DestAirport>[COLOR=darkblue]string[/COLOR]</DestAirport>
            <InsuredValue>[COLOR=darkblue]decimal[/COLOR]</InsuredValue>
            <FreightInfo xsi:nil="true" />
            <Charges xsi:nil="true" />
            <Costs xsi:nil="true" />
            <TermCode>[COLOR=darkblue]string[/COLOR]</TermCode>
            <ConsolNo>[COLOR=darkblue]string[/COLOR]</ConsolNo>
            </ShipmentInquiryV3>
            </ShipInqOutput>
            </ShipmentInquiryV3Result>
            </ShipmentInquiryV3Response>
            </soap12:Body>
            </soap12:Envelope>[/COLOR][/FONT]​
            Gregg
            https://paiza.io is a great site to test and share sql code

            Comment


              #7
              Look at the Help.
              Parsing XML with Xbasic.
              You should be able to get rid of the text you don't want.

              Edit look at the video property_from_xml Function

              Last edited by Ted Giles; 04-21-2024, 01:34 PM.
              See our Hybrid Option here;
              https://hybridapps.example-software.com/


              Apologies to anyone I haven't managed to upset yet.
              You are held in a queue and I will get to you soon.

              Comment


                #8
                So what do you need to do with the data in the second string?

                Comment


                  #9
                  Hi Allen,
                  It’s not just a second string.
                  If you paste each object into a json viewer, you will see the difference between the two objects.
                  Gregg
                  https://paiza.io is a great site to test and share sql code

                  Comment


                    #10
                    Ted Giles: I haven't forgotten about you but it's taking a while to wander through the *property_from_xml stuff.
                    Gregg
                    https://paiza.io is a great site to test and share sql code

                    Comment


                      #11
                      I'm going to use pictures to display the bad and the good.
                      The first image is the bad object. The second image is the good object.

                      I did run into a little problem pasting these into the browser developers tools due to microsoft and google thinking we're too stupid to not exercise caution before pasting code, but that was a relatively simple fix.

                      2024-04-21_16-01-53badobj.png
                      2024-04-21_16-04-53goodobj.png
                      Gregg
                      https://paiza.io is a great site to test and share sql code

                      Comment

                      Working...
                      X