Create a list of subrooms in quickblox - quickblox

How can I create a room and let that room lead to list of sub-rooms . Users will be able to select this room and select which of the sub-rooms they will love to join. How can I do this in quickblox

There is no built in functionality for this, but you can use Custom objects module to achieve such structure, for example create 2 entities: Rooms and SubRooms. SubRoom will have a field with link to ID of Room.
iOS CustomObjects code sample http://quickblox.com/developers/SimpleSample-customObjects-ios
Android code sample http://quickblox.com/developers/SimpleSample-customObjects-android

Related

Laravel simple private conversation structure

I am trying to create a simple private conversation between two users. I've tried following some examples but all i can find is for multiple users in multiple conversations and more complex versions. My endgoal is for simply be able to do $user->conversations->messages to get all my conversations and their messages that has been sent between two users.
I only need some help with the structure and relation between the tables to easily find correct conversation for each user and the messages connected to the conversation.
I currently have 3 models for this.
User Model
Conversation Model
PrivateMessages Model
My tables currently look like this but i think i need to do some changes to them also.
users:
id
name
conversations:
id
private_messages:
id
sent_by
sent_to
body
read_at
conversation_id

Maintain Cross reference in SAP-MDG

I am new to SAP-MDG and I am trying to identify how can we store cross reference details in MDG.
I got to know about key mapping but that is not something that I understand.
My requirement is:
I have 10 applications sending data to me each having it's own app id and customer number, I want to store the mapping.
App -id --- Customer number from application ---- sap-id(at our end)
Is this something that can be done without a custom table?
Better place for get answers for your questions - sdn.sap.com (sap mdg community)
you can create this table like a data model (for example via reuse method) and save it in staging area sap mdg
you can use Z-table for store this data

SQL script for Custom mail body from 2 un-related tables

View StructureI am working on a tool wherein we have to configure a view to send out the custom email notifications to the customers.
I have a view name:
webNotification_Mail_LiqAmt_Workflow which stores email details like
Then I have another table from where I need to bring in the amount which is to be mailed to the customers based on their projects and other parameters.
[enter image description here][2]
I do not need email setup because it is already taken care. I need to pass the amount in the email body so basically I need to get the amount in 'messsge' column of the above view (webNotification_Mail_LiqAmt_Workflow)
I cannot think of a way to built this logic as both the tables are un-related.
Please help.
Design of the view:
**CREATE VIEW [dbo].[webNotification_Mail_LiqAmt_Workflow]
AS
SELECT ID,
Event,
EmailFrom,
Subject,
Message,
'NoReply#xyz.com' AS EmailTo,
'123#rte.com' AS EmailBCC
FROM dbo.webWorkflowNotification_LiqAmt**
I would need custom amounts in the message column based on the parametrers.The view that from where I need the Amounts looks like:
SELECT TOP (1000) [LIQAMTID]
,[Project_Name]
,[Startup]
,[Business_contact_Name]
,[Business_Contact_Email]
,[Sum_Liq_amt]
FROM [webLiqAmt_Mail_Notification]
According to my grasp of the situation I guess what you are looking for is a cross join.By using cross join you could add the two unrelated tables and then later exploit them for your use. I am giving and example,
SELECT username,password,dob,address
FROM basic_details
CROSS JOIN login
where username and password belong to login, and dob and address belong to basic_details.
OR
You can use cartesian product of the two tables.
SELECT * FROM basic_details, login
This would result in M * N rows.
Hope it helps.

When relating 3 entities in CRM 2011 using Advanced Find only 2 entities show up in edit columns

I'm trying to create a view in CRM 2011 that will show a few columns from Customers (Account), Orders (SalesOrder), and Order Products (SalesOrderDetail). I already know I need to start at the child-most entity so under Advanced Find I select "Order Products" under Look for. When I do this I'm able to select columns from Orders but unable to select columns from Customers.
Is this even possible to accomplish in CRM?
I'm trying to create the following result set:
Account.Name,
Account.Email,
SalesOrder.OrderNumber,
SalesOrderDetail.NetAmount,
SalesOrderDetail.ShipDate
I verified that you cannot manually add a second link within a view query. To my knowledge it is also not possible to add these columns though javascript. You can get the account name in your view simply by using the account lookup on the Order. If you need for the account email to also be in the view, then I suggest you add this field to the order entity and populate it with post callout logic on the account.
I Second Zach’s idea, but suggest adding a direct relationship between customer and orderdetail . This way you can use fetchxml to show account.email or any other account.* for that matter.
The downside is you’ll need to sync order.customer changes to orderdetail.customer.
The better option is to simply create a report and show that in an iframe or a webresource.
This is not possible even if we edit the fetch xml it wont work

Linking "Friends" with the account holders profile

I am designing an application where an account holder has "friends". How would I go about linking those friends to the original account holder? Would an efficient SQL table be something like:
AccountHolderID (varChar 20)
FriendsID (nText)
We implement something similar--using a table to hold the friends... Ours breaks down quite simply as a table of friends...
AccountHolderId( type)
FriendAccountHolderId ( type)
Created(datetime) // useful for tracking when the friend was added
Both of the Id fields link back to the Accounts/Users table.