Announcement

Collapse
No announcement yet.

Showing the account name

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

    Showing the account name

    How would I show the account name anywhere on a page?

    <Actinic:CURRACCOUNT> ends up putting more than what I need as it includes 'Account:' at the start and '|' at the end.

    Is there a NETQUOTEVAR that I can use to just display the account name?

    While I'm asking, is there also one to just display the 'Buyer' name?

    I already know about Phase: -1 and ID: 212/213, but they are not what I need.

    Any help appreciated.

    #2
    Have you tried the...

    <Actinic:NOWSERVING/>

    Tag... Drop that in and see what that produces for you..

    Comment


      #3
      That doesn't work either as is shows 'Buyer: (buyer's name) |'

      Any other suggestions?

      Comment


        #4
        Those are the only 2 I am aware off for the accounts side of it, but using that and adjusting it within the Design | Text to remove the | and what you dont want is possible.

        Comment


          #5
          Going through Design | Text is not possible for what I want, as I need to have just have the buyer name, or preferably the account name displayed.

          Can anyone tell me the NETQUOTEVAR for this (if it can be done)

          Comment


            #6
            I've not tested this but something like:-

            Code:
            <script language=JavaScript>
            document.write('<Actinic:CURRACCOUNT/>'.replace(/Account:(.*)\|.*/,"$1"));
            </script>
            Might do the trick.

            Norman

            PS the lack of <!-- and //--> comments in the JavaScript is deliberate. They interfere with Actinic XML parsing.

            You will also have to make sure the single quote character ' is not used in any of your Account names.
            Last edited by NormanRouxel; 23-Oct-2004, 11:16 AM. Reason: Code changes.
            Norman - www.drillpine.biz
            Edinburgh, U K / Bitez, Turkey

            Comment


              #7
              You might also want to look at <Actinic:WELCOME/> and it's associated Design / Text / Phase -1, ID 210.

              Norman
              Norman - www.drillpine.biz
              Edinburgh, U K / Bitez, Turkey

              Comment


                #8
                Code:
                <script language=JavaScript>
                document.write('<Actinic:CURRACCOUNT/>'.replace(/Account:(.*)\|.*/,"$1"));
                </script>
                The code does actually do the trick for just displaying, but it hasn't worked like I expected. I want to create a link where part of the link changes to the account name. (I probably should have mentioned that to start with)

                e.g.
                http://www.domain.com/link?id1=abcde&id2=<account name>

                Using the javascript, I can make the link but it changes it to '<SPAN CLASS=' instead of 'account name'

                Comment


                  #9
                  I want to create a link where part of the link changes to the account name.
                  You'll have to be quite specific and give an example.

                  Norman
                  Norman - www.drillpine.biz
                  Edinburgh, U K / Bitez, Turkey

                  Comment


                    #10
                    If the account name is 'company1', the link would be:
                    http://www.domain.com/link?id1=abcde&id2=company1

                    If the account name is 'abcltd', the link would be:
                    http://www.domain.com/link?id1=abcde&id2=abcltd

                    The link would change to reflect the account name.

                    Hope I've made it a bit clearer

                    Comment


                      #11
                      Hi there

                      Using the javascript, I can make the link but it changes it to '<SPAN CLASS=' instead of 'account name'
                      I think the reason why this is happening, is because in "Design | Text", Phase -1, ID: 213, You have the following code:

                      Code:
                      %sAccount: %s | %s
                      The beginning %s and end %s relates to <SPAN> tags.

                      Kind Regards
                      Nadeem Rasool
                      SellerDeck Development

                      Comment


                        #12
                        I'm sure you're right, but is there any way to just display the account name without creating and SPAN tags? Changing the design text is not an option.

                        Comment


                          #13
                          Hi David

                          I'm afraid there is no NETQUOTEVAR variable which will just show you the account name. I will add this as a wishlist.
                          At the moment we use XML for displaying the account name

                          Kind Regards
                          Nadeem Rasool
                          SellerDeck Development

                          Comment

                          Working...
                          X