-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] How to display data in Table format in BOT #2785
Comments
@MuraliMohanEdiga Are you using .NET or Node SDK for BotBuilder? |
@MuraliMohanEdiga which channel are you trying to create a table on? |
To display a table in your message, set your message Example (Node SDK): bot.dialog('message_with_table', function (session) {
var tableHTML = '<table style="padding:10px;border:1px solid black;"><tr style="background-color:#c6c6c6"><th>Countries</th><th>Capitals</th><th>Population</th><th>Language</th></tr><tr><td>USA</td><td>Washington D.C.</td><td>309 million</td><td>English</td></tr><tr><td>Sweden</td><td>Stockholm</td><td>9 million</td><td>Swedish</td></tr></table>';
var message = {
type: 'message',
textFormat: 'xml',
text: tableHTML
};
session.send(message);
}); |
@nwhitmont ..Its working for me to display data in table format. Thank you so much |
Hi @nwhitmont Thanks for your reply about displaying the data in table format .With reference to the syntax provided I am trying to create login(html) form in the BOT ,I am able to create the form with some html controls like text boxes(input fields) please find the screenshot given below. Can you please let me know how to retrieve the values of the form fields(text boxes/Password fields) created in the bot. Please find the sample snippet
} ]).triggerAction({
|
hi.. did you get proper table format in slack bot? I am also looking for a similar option. it would be great if you can share your suggestions. |
hi..can you please tell how to display table in bot by .NET SDK |
yeah, it will be helpful, anybody sends code to display table in bot by .NET SDK |
I tried to set |
Hi,
Can some one please help me out in displaying the data table format in BOT as below
The text was updated successfully, but these errors were encountered: