Trouble updating broadband fields via XML

Discussion in 'Optigold ISP' started by l0cke, Oct 21, 2004.

  1. #1
    I'm trying to update a few broadband fields via an HTTP request and can't seem to get it to work. Here is what I am trying:

    HTTP Query
    FMPro?-db=MainMenu.fp5
    &-format=bb_update.txt
    &-Max=1
    &-lay=Web+ISP+Management
    &-script=ISP+Management+Web
    &identifiction=28
    &Customer+ID=6
    &password=<encrypted password>
    &Broadband+7=test
    &-Find
    
    Code (markup):
    bb_update.txt
    
    [FMP-Record][FMP-Field: Broadband 7][/FMP-Record]
    
    Code (markup):
    The stock web interface works and the only difference I can see is that the stock interface passes all of the values (Broadband 1, Broadband 2, etc).

    Do I need to pass all the values for this to work or am I missing something else?
     
    l0cke, Oct 21, 2004 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    If you want to do it with XML, you won't want to mimic anything that the default web files are doing... you will want to use the normal functions like -Edit and reference things by record ID.
     
    digitalpoint, Oct 21, 2004 IP
  3. l0cke

    l0cke Active Member

    Messages:
    178
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    73
    #3
    I have been using -Edit on other files without any issues but I cannot get it to work with MainMenu. I tried
    and received
    MainMenu has Edit permissions checked off and Broadband 7 is not in the list of restricted fields.
     
    l0cke, Oct 21, 2004 IP
  4. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #4
    It's security restrictions... specifically this:

    Login Account::cEdit Broadband Info > 0 or  Left(Status(CurrentLayoutName), 17) = "New Account Entry"
    Code (markup):
    So your web server "employee" would need access to edit broadband fields.
     
    digitalpoint, Oct 21, 2004 IP
  5. l0cke

    l0cke Active Member

    Messages:
    178
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    73
    #5
    Thanks, that did it :)
     
    l0cke, Oct 21, 2004 IP