Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Update List Records (Sort)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  10 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
dgustav...@ingdirect.com  
View profile  
 More options Jun 18 2012, 3:16 pm
From: dgustav...@ingdirect.com
Date: Mon, 18 Jun 2012 12:16:28 -0700 (PDT)
Local: Mon, Jun 18 2012 3:16 pm
Subject: Update List Records (Sort)

There is a list table (
http://xxx/VersionOne/rest-1.v1/Data/List?where=AssetType='Custom_bus...)
that I would like to set the sort order on the records based on the owner
name so they are alphabetical and not showing in order they were added.

What I am looking for is the POST URL syntax that I need in order to set
the Order attribute to a particular value for a specific record.

Thanks,
Dan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ibuchanan  
View profile  
 More options Jun 18 2012, 3:36 pm
From: ibuchanan <ian.bucha...@versionone.com>
Date: Mon, 18 Jun 2012 12:36:23 -0700 (PDT)
Local: Mon, Jun 18 2012 3:36 pm
Subject: Re: Update List Records (Sort)

Dan,

The quick answer is as follows:

HTTP POST to URL:
https://www14.v1host.com/v1sdktesting/rest-1.v1/Data/Custom_Notes/10209

XML Data: <Asset> <Attribute name="Order" act="set">0+</Attribute> </Asset>
It's not exactly an answer to your question because Order is an "opaque
value". That means we have an internal meaning for it and you can't set the
value directly, you have to set it relative to something else. In the
example above, the request tells VersionOne to put the list value just
after 0 (some Order values are negative so 0 is not guaranteed to be first
within the system). When we iterate over each list value and set Order to
0+, this works like pushing values onto a stack. Each list value will get
added after 0 and pushes all the other list values down. Therefore, if you
"push" them in reverse alphabetical order, the list will become
alphabetized.

Does that answer your question?

Ian


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
danno  
View profile  
 More options Jun 18 2012, 3:42 pm
From: danno <dgustav...@ingdirect.com>
Date: Mon, 18 Jun 2012 12:42:21 -0700 (PDT)
Local: Mon, Jun 18 2012 3:42 pm
Subject: Re: Update List Records (Sort)

That certainly helps - I will take your suggestion and see if I can make it
work.

Thanks!
Dan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
danno  
View profile  
 More options Jun 19 2012, 9:28 am
From: danno <dgustav...@ingdirect.com>
Date: Tue, 19 Jun 2012 06:28:25 -0700 (PDT)
Local: Tues, Jun 19 2012 9:28 am
Subject: Re: Update List Records (Sort)

This is the URL I am posting:

http://server/VersionOne/rest-1.v1/Data/Custom_business_owners/7241?x...\V1StoryToExcel\apiPostOwnerSort.xsl'

The contents of the file are below:

<Asset>
 <Attribute name="Order" act="set">0+</Attribute>
</Asset>

I get a response 400. Am I missing something in the xsl file?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Acey Bunch  
View profile  
 More options Jun 19 2012, 9:43 am
From: Acey Bunch <acey.bu...@versionone.com>
Date: Tue, 19 Jun 2012 06:43:30 -0700
Local: Tues, Jun 19 2012 9:43 am
Subject: RE: Update List Records (Sort)

The XSL is used for transforming the data for display. Try removing "?xsl='\\V1StoryToExcel\apiPostOwnerSort.xsl'" from the URL that you are posting to.

Acey Bunch

From: versionone-dev@googlegroups.com [mailto:versionone-dev@googlegroups.com] On Behalf Of danno
Sent: Tuesday, June 19, 2012 9:28 AM
To: versionone-dev@googlegroups.com
Subject: Re: Update List Records (Sort)

This is the URL I am posting:

http://server/VersionOne/rest-1.v1/Data/Custom_business_owners/7241?x...\V1StoryToExcel\apiPostOwnerSort.xsl'

The contents of the file are below:

<Asset>
 <Attribute name="Order" act="set">0+</Attribute>
</Asset>

I get a response 400. Am I missing something in the xsl file?

On Monday, June 18, 2012 3:16:28 PM UTC-4, danno wrote:

There is a list table (http://xxx/VersionOne/rest-1.v1/Data/List?where=AssetType='Custom_bus...) that I would like to set the sort order on the records based on the owner name so they are alphabetical and not showing in order they were added.

What I am looking for is the POST URL syntax that I need in order to set the Order attribute to a particular value for a specific record.

Thanks,
Dan

--
You received this message because you are subscribed to the Google Groups "VersionOne-dev" group.
To view this discussion on the web visit https://groups.google.com/d/msg/versionone-dev/-/urdGOIRAa-IJ.
To post to this group, send email to versionone-dev@googlegroups.com<mailto:versionone-dev@googlegroups.com>.
To unsubscribe from this group, send email to versionone-dev+unsubscribe@googlegroups.com<mailto:versionone-dev+unsubscri be@googlegroups.com>.
For more options, visit this group at http://groups.google.com/group/versionone-dev?hl=en.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
danno  
View profile  
 More options Jun 19 2012, 11:22 am
From: danno <dgustav...@ingdirect.com>
Date: Tue, 19 Jun 2012 08:22:53 -0700 (PDT)
Local: Tues, Jun 19 2012 11:22 am
Subject: Re: Update List Records (Sort)

Acey,

Thank you for your help.

I have removed the ? which now looks like:

 http://server/VersionOne/rest-1.v1/Data/Custom_business_owners/7241
xsl='\\V1StoryToExcel\apiPostOwnerSort.xsl'

and I got a 404 response now. Looks like this should be simple... Here is
the vba code I am running - do you see anything incorrect?

    strURL = "http://server/VersionOne<http://server/VersionOne/rest-1.v1/Data/Custom_business_owners/7241%2...>/rest-1.v1/Data/Custom_business_owners/7241
xsl='\\V1StoryToExcel\apiPostOwnerSort.xsl'"
    Set objWinHttp = CreateObject("Msxml2.XMLHTTP.3.0")

    objWinHttp.Open "POST", strURL, False, strUserName, strPassword
    objWinHttp.send
    If objWinHttp.status <> 200 Then
        MsgBox (objWinHttp.status)
        Exit Function
    End If


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Acey Bunch  
View profile  
 More options Jun 19 2012, 11:25 am
From: Acey Bunch <acey.bu...@versionone.com>
Date: Tue, 19 Jun 2012 08:25:53 -0700
Local: Tues, Jun 19 2012 11:25 am
Subject: RE: Update List Records (Sort)

Sorry if I wasn't clear, you need to remove everything after the /Custom_business_owners/7241.

Try this for your URL: http://server/VersionOne/rest-1.v1/Data/Custom_business_owners/7241/

-Acey

From: versionone-dev@googlegroups.com [mailto:versionone-dev@googlegroups.com] On Behalf Of danno
Sent: Tuesday, June 19, 2012 11:23 AM
To: versionone-dev@googlegroups.com
Subject: Re: Update List Records (Sort)

Acey,

Thank you for your help.

I have removed the ? which now looks like:

http://server/VersionOne/rest-1.v1/Data/Custom_business_owners/7241 xsl='\\V1StoryToExcel\apiPostOwnerSort.xsl'<http://server/VersionOne/rest-1.v1/Data/Custom_business_owners/7241%2...>

and I got a 404 response now. Looks like this should be simple... Here is the vba code I am running - do you see anything incorrect?

    strURL = "http://server/VersionOne<http://server/VersionOne/rest-1.v1/Data/Custom_business_owners/7241%2...>/rest-1.v1/Data/Custom_business_owners/7241 xsl='\\V1StoryToExcel\apiPostOwnerSort.xsl'"
    Set objWinHttp = CreateObject("Msxml2.XMLHTTP.3.0")

    objWinHttp.Open "POST", strURL, False, strUserName, strPassword
    objWinHttp.send
    If objWinHttp.status <> 200 Then
        MsgBox (objWinHttp.status)
        Exit Function
    End If

On Monday, June 18, 2012 3:16:28 PM UTC-4, danno wrote:

There is a list table (http://xxx/VersionOne/rest-1.v1/Data/List?where=AssetType='Custom_bus...) that I would like to set the sort order on the records based on the owner name so they are alphabetical and not showing in order they were added.

What I am looking for is the POST URL syntax that I need in order to set the Order attribute to a particular value for a specific record.

Thanks,
Dan

--
You received this message because you are subscribed to the Google Groups "VersionOne-dev" group.
To view this discussion on the web visit https://groups.google.com/d/msg/versionone-dev/-/EOzQ3WU7eeIJ.
To post to this group, send email to versionone-dev@googlegroups.com<mailto:versionone-dev@googlegroups.com>.
To unsubscribe from this group, send email to versionone-dev+unsubscribe@googlegroups.com<mailto:versionone-dev+unsubscri be@googlegroups.com>.
For more options, visit this group at http://groups.google.com/group/versionone-dev?hl=en.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
danno  
View profile  
 More options Jun 19 2012, 12:01 pm
From: danno <dgustav...@ingdirect.com>
Date: Tue, 19 Jun 2012 09:01:21 -0700 (PDT)
Local: Tues, Jun 19 2012 12:01 pm
Subject: Re: Update List Records (Sort)

Acey,

That URL will only return the record of list item 7241. I am trying to post
an update using the "set" on the Order attribute, setting it to +0 for that
particular item.

The xsl file I am posting with looks like this:

<Asset>
 <Attribute name="Order" act="set">0+</Attribute>
</Asset>
Dan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
danno  
View profile  
 More options Jun 20 2012, 2:38 pm
From: danno <dgustav...@ingdirect.com>
Date: Wed, 20 Jun 2012 11:38:13 -0700 (PDT)
Local: Wed, Jun 20 2012 2:38 pm
Subject: Re: Update List Records (Sort)

Any additional suggestions from my last reply below??


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Acey Bunch  
View profile  
 More options Jun 20 2012, 3:24 pm
From: Acey Bunch <acey.bu...@versionone.com>
Date: Wed, 20 Jun 2012 12:24:02 -0700
Local: Wed, Jun 20 2012 3:24 pm
Subject: RE: Update List Records (Sort)

Hi Dan,

One thing that you may find helpful is to use the HTTP Tester that is included with VersionOne API. This will allow you try out different syntax in a structured way and see the result immediately by changing the URL and XML payloads that you POST.

You can access the tester with the following URL in your V1 instance: http://{servername}/VersionOne/http.html<http://%7bservername%7d/VersionOne /http.html>.

In addition, here are some examples on how to update scalar attribute values on V1 assets: http://community.versionone.com/sdk/Documentation/DataAPI.aspx#lbe.up....

-Acey

From: versionone-dev@googlegroups.com [mailto:versionone-dev@googlegroups.com] On Behalf Of danno
Sent: Wednesday, June 20, 2012 2:38 PM
To: versionone-dev@googlegroups.com
Subject: Re: Update List Records (Sort)

Any additional suggestions from my last reply below??

On Monday, June 18, 2012 3:16:28 PM UTC-4, danno wrote:

There is a list table (http://xxx/VersionOne/rest-1.v1/Data/List?where=AssetType='Custom_bus...) that I would like to set the sort order on the records based on the owner name so they are alphabetical and not showing in order they were added.

What I am looking for is the POST URL syntax that I need in order to set the Order attribute to a particular value for a specific record.

Thanks,
Dan

--
You received this message because you are subscribed to the Google Groups "VersionOne-dev" group.
To view this discussion on the web visit https://groups.google.com/d/msg/versionone-dev/-/wQiF0kOP9kcJ.
To post to this group, send email to versionone-dev@googlegroups.com<mailto:versionone-dev@googlegroups.com>.
To unsubscribe from this group, send email to versionone-dev+unsubscribe@googlegroups.com<mailto:versionone-dev+unsubscri be@googlegroups.com>.
For more options, visit this group at http://groups.google.com/group/versionone-dev?hl=en.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »