SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    May 2003
    Posts
    25
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Parsing Physical Description attributes

    Here is a physical description of an object that I added to a GUI map. I now want to parse this object. What is the best way to do this. I am trying to use web_obj_get_info to get the attributes in the physical description, but this is not working.

    phys_desc = "{Option: \"View\", Work Order: \"RO-65\", Sales Order: \"I dont have a Repair Order Number.\", Tail: \"\", Airport: \"KDAL\", Repairing Vendor: \"SUPPORT-KDAL\", Start Date: \"\", End Date: \"2003-12-05\", Type: \"LINE\"}";

    sample code:
    web_obj_get_info(phys_desc, "Airport", val);
    val is always empty.

    I also tried "Airport:", and the same result.

    What is the best way to use the physical description as an object and parse its attributes?

    Thanks in advance.

    Terry

  2. #2
    Member
    Join Date
    Mar 2003
    Posts
    95
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Parsing Physical Description attributes

    You are using the wrong function.
    web_obj_get_info will get a runtime property of the object you define.

    If you are trying to get a property of a object in your gui map try using the 'GUI_buf_get_desc_attr' function.

    Nikesh

  3. #3
    Junior Member
    Join Date
    May 2003
    Posts
    25
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Parsing Physical Description attributes

    Thank you very much. That is a problem. But I found one other issue that isn't documented. In the physical description, the attributes cannot have white spaces, so attributes such as "Work Order" or "Sales Order" must be come SalesOrder or Sales_Order.

    Thanks for explaining the idea of the run-time attributes.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 06:08 AM.

Copyright BetaSoft Inc.