Sap B1 ObjectType Code - sap

I already create a User Table (name= ORN_TB1_VIDS) with single fields like (id,name,rented) so I'm trying to make a ChooseFromList to display my table (ORN_TB1_VIDS) but I don't know what is the correct ObjectType Code for my table .
Could someone help me with this?
Thanks in advance!

the User Tables doesn't have ObjectType, you must have to create an UDO (User Defined Object) an assign it an Object Type

Related

Xcart - How to delete rows from table in Xcart

I am using X-Cart for my project, I need help in how to perform delete query in X-cart. Currently, I am using the below code but it showing me an error.
Can anyone help me in this??
$products = \XLite\Core\Database::getRepo('\XLite\Module\XCExample\FormDemo\Model\NewScroll')->createQueryBuilder('p');
$products->delete('xc_news_scroll p');
$products->getResult();
If you want to remove some object, then you should go:
\XLite\Core\Database::getRepo('\XLite\Module\XCExample\FormDemo\Model\NewScroll')->delete($newScrollObjectToRemove);
If you want to remove some column from the database schema, you need to edit the model class of the entities stored in the table and remove this property there. After that, you will need to re-deploy the store.
Best,
Tony

MS Access & Queries

Looking for a bit of help for an Access/Query question pertaining to a homework assignment that has 6 separate questions. I have completed all but one. The assignment wants me to do the following query.
The name, unit price, and quantity ordered for all products purchased by a customer whose id is entered from the keyboard.
Is there a function I'm overlooking for the ID entity criteria? I've looked and searched but cannot find how to add that part into the query. Thanks in advance for any help.
You can accomplish this by making the ID criteria a parameter. Access will then pop up an input form that lets you enter the value of the parameter.
You can read more here and here.

Create external reference id

I have duplicated a new group in OpenERP 6.1.1 .
Now I need to create an external reference id for it since I need to refer it in a view.
Normally, I guess, I should have created the group using an xml file but now I have already been using the group and assigned users to it so I don't wan't to redo the whole thing again.
Is there a simpler way ? Please suggest. Thanks in advance.
You can manually insert a row in the table ir_model_data. name is the external id and res_id is integer id. Other required fields are module and model.

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.

How to load only certain columns using fluentnhibernate?

I want to know how can i fill only certain columns while filling the entity object?
i am interested in certain properties of the entity and not all.
but when i use session to fetch the entity it sends query like "select * from Customer" for example.
but i want to do "Select customerName from Customer".
I think it has some thing to do with LazyLoad() but i am not sure how exactly.
Any help will be highly appriciated.
Thanks in Advance,
Ashish
var defs = session.CreateCriteria(typeof(test));
defs.SetProjection(Projections.ProjectionList()
.Add(Projections.Property("FirstColumn"));