Nueva publicación

Rechercher

Pregunta
· 20 nov, 2024

Iterate through current Row of EnsLib.SQL.Snapshot

I am using a JDBC connection to MS SQL server to execute a stored procedure to select data and bring it into InterSystems as a EnsLib.SQL.Snapshot. I loop through the EnsLib.SQL.Snapshot using a while loop, but I also want to iterate through the Columns within that Row to do logic.

Is there a way to iterate through the Columns of the current Row of the EnsLib.SQL.Snapshot so I can apply logic/rules for further processing?

Thanks

Scott

4 comentarios
Comentarios (4)2
Inicie sesión o regístrese para continuar
Pregunta
· 20 nov, 2024

Impossible to modify headers and status in a %CSP.REST %response

Hi everybody, 

I'm modifying a REST interface for a client but it seems impossible to me to modify HTTP Response Status and including custom HTTP Headers either.

My dispatch class (extending %CSP.REST) is contacted through a POST request and the latter is processed in a custom class (extending %CSP.REST as well) accessed as shown in the example below:

  <Route Url="/test" Method="POST" Call="Custom.Test:Process" />

Within the processing class I tried executing the following statements with no success:

Do %response.SetHeader("totalcount",totalcount)
Set %response.Status = ..#HTTP400BADREQUEST

The following message is always returned, even if an error occurred: 

Moreover, I tried to print %response.Status just before the end of the code in the processing class and it seems to have the right value ("400 Bad Request"), even it is always 200 within the response.

Finally, I tried adding a custom header with no success, again. I tried with "x-totalcount" also, as a user suggested in another question but it haven't worked.

Can somebody help me?

Thanks

6 comentarios
Comentarios (6)2
Inicie sesión o regístrese para continuar
Artículo
· 20 nov, 2024 Lectura de 2 min

Como enviar mensagens diretas na Comunidade de Desenvolvedores InterSystems

Olá Comunidade!

Existem ocasiões em que você precisa entrar em contato com um membro da nossa Comunidade, como o autor de uma postagem ou o desenvolvedor de um projeto específico, para discutir algo, acompanhar o progresso ou qualquer outra razão. E exatamente para isso, temos Mensagens Diretas, onde você pode enviar uma mensagem diretamente para uma pessoa específica ou até mesmo participar de um chat em grupo!

Acessar as Mensagens Diretas é fácil. Apenas clique no botão de Envelope próximo à sua imagem de perfil:

E você terá várias opções:

Primeiro, você vê todas as mensagens que você recebeu na sua Caixa de Entrada, as não lidas em Não Lidas, e as favoritas em Favoritos. Também, no menu esquerdo, você pode ajustar as configurações das mensagens diretas na seção Configurações:

Voltando à seção Caixa de Entrada, se você selecionar uma ou várias mensagens (ou Selecionar tudo), você pode Excluir, Marcar como não lida/lida ou Adicionar aos favoritos todo o lote. E se você adicionar uma mensagem aos favoritos, poderá encontrá-la rapidamente na seção Favoritos.

Outra maneira de adicionar uma mensagem aos favoritos é passar o mouse sobre ela e clicar na estrela que aparece perto da data:

Mensagens nos favoritos receberão uma estrela verde nessa linha.

Tem algumas outras maneiras de rapidamente enviar uma DM para um membro da comunidade:

  • vá para o perfil do membro que você quer entrar em contato
  • você também pode rapidamente iniciar uma discussão privada da página de publicação sobre um tópico específico descrito na postagem - o título do post será automaticamente utilizado como o assunto da DM

 

É isso, facinho. Boas mensagens!

Comentarios (0)1
Inicie sesión o regístrese para continuar
Pregunta
· 20 nov, 2024

Documentation Issues

Who do we report Documentation issues to?

Since moving to the new format, when searching for things within the documentation I get a blank screen with no results.

When I type in my search criteria, I can see it trying to find results but does not return results.

This does not seem like it is limited to a certain Web Browser, as I have seen this happen in Chrome and Edge

 

Thanks

Scott

25 comentarios
Comentarios (25)5
Inicie sesión o regístrese para continuar
Pregunta
· 20 nov, 2024

Error Compiling class

Hi, 

When I try to compile a specific class it fails and gives the below error message.

ERROR #5002: Cache error: <FUNCTION>zLockUse+5^%ExtentMgr.GlobalRegistry.1
  > ERROR #5030: An error occurred while compiling class 'ClassNameHere'

Is there anything I can do to fix this issue?

Thank you in advance for your response.

Comentarios (0)1
Inicie sesión o regístrese para continuar