Missing SQL view in geoserver - geoserver

At the moment I'm trying to make an SQL view in geoserver, however I do not have the option to make an SQL view. see picture below.
Anyone else who has had problems with this issue? I can't find any documentation how to fix this problem so help will be appreciated!

Thanks for responding, it was a shapefile source so that was the reason it is not possible. For the people who come to this post with the same question, the datasource .SHP does not support SQLviews on geoserver. There are two possible solutions for this: 1) change your data source to a dbs like postgres. 2) Use CQL filter instead directly in your code!

Related

How do I debug work of 2sxc if Visual Query works perfectly during debug, but cshtml code can't access data?

I've edited some existing visual queries of Blog 4.0 application and when I was debugging it - it worked perfectly. But then on page it stopped working. Any attempt to use key with Data like Data["Posts"] raises System.Collections.Generic.KeyNotFoundException. App.Query["Blog Posts List"]["Posts"] returns something, but any attempt to access its fields raises another exception (don't remember the name, but it said that there's no such member inside that object).
I didn't rename queries, I didn't change application settings. I just edited logic of 2 queries. I renamed 1 wiring endpoint name across 3 queries in whole chain.
How do I debug it? How can I see what does cshtml receive from database so I don't guess and put my crystal ball away?
In general, App.Query["Name of Query"] will get you the streams of data. You usually need to convert it using AsDynamic() or AsList() to something you can work with.
This should help some; What is Data?
If you're just running into problems with field names, you probably forgot the AsList or AsDynamic, just like #accuraty-jeremy mentioned.
For real debugging, go to insights, you'll see what happens - but in your case it probably won't help, because your working with an object that's not dynamic (so doesn't support .FirstName) until you AsList/AsDynamic it.
My bad: I confused two different files - _List.cshtml and _List Paging.cshtml. So I was searching for an error in the code of wrong file.

How to decode this png file?

Can anyone please help on how to open this png file: https://dl.dropboxusercontent.com/u/23248082/TEST.PNG
Also it would be great if you can tell me how it is enrcrypted or why its not opening.
It opens fine only with Meditech client. It seems Meditech is encrypting in someway.
I tried with different viewers and also tried converting it into differen format but so far no luck.
Iam also a newbie in this area. Any help would be highly appreciated.
Thanks..
Looking at it with tweakpng it seems the format is deliberately corrupted for proprietary use. There's a wrong CRC for the palette (correcting it does no good) and an invalid chunk count.
If your Meditech is the EHR (Electronic Health Record) system then you will only be able to accurately view the image by accessing it from the system. All data is encrypted for the purpose of restricting access to patient records.

Sample of how to create and save new entity, Breezejs

Im trying to create a very basic Todo-entity from the Breeze example.. Im doing:
manager.createEntity("Todo",{Description:"Test",Id:32,IsDone:false});
But I keep getting an error where the console tells me that it couldnt find the Type "Todo".. I have tried all types I can possibly think of..
Could anyone please provide me with an example of how to create an entity for the breeze WebApiSample.. cause this is driving me nuts..
Thanks alot!
Breeze needs metadata in order to create an entity of any type. That metadata can either be returned from the server or created locally. My guess is that you haven't yet done either of these. Metadata from the server is usually automatically fetched by Breeze during its first query against the server. Alternatively you can cause it to be fetched directly via the MetadataStore.fetchMetadata method.
Hope this helps.

Is there any tool to generate a labels.rdf file?

Examining the 404 errors for my website I noticed requests for a "labels.rdf" file. After some digging I think I understand what it is and want to create one for my website. But I don't really understand how to generate it. Is there any tool or a generic file that I can use?
Thanks
RDF is not just one format, but a collection - most likely it's expecting RDF/XML.
IMHO the esiest thing to do is create the data you need in a format called Turtle (http://www.w3.org/TeamSubmission/turtle/) - there's lots of tutorials online, then convert it to RDF/XML with a tool, such as rapper (http://librdf.org/raptor/).
You will need to know a bit about the RDF data model though, and what the labels.rdf file is trying to express.

populate a formview using linq - vs2010 c#

Using Linq I have built a query which I return to a gridview.
This works fine but I want to populate a formview with the same data,
can anyone point me to a decent how-to article please?
thanks
Try to assign your query result to a DataSource property, then try to execute DataBind() method.. it should work.. if not, please provide us some code...
Regards..

Resources