I've created all courses in moodle and I've uploaded scorms in hidden status.
How do I do to show all scorms from database?
Thanks!
Edit: I want do it in database, because i want do a massive update
If you just want to see the list of Scorm-type activities in the database, you can use the following query:
SELECT * FROM mdl_scorm;
Related
I've three tables Users, company and user_company (pivot). I need to, for example, associate users to a company in a form using select that show me only the user are nit associated to this company.
Could anybody help me?
Thanks in advance
check the Filaments Documentation on the relationshipmanager AND
#Attaching and detaching records either manually or by --attach when creating the relationship manager
Ensure withPivot is included in the EloquentModel and check the getRelations in the modelresource
See docs #Populating automatically from a relationship
This works for me:
Forms\Components\Select::make('companyId')
->multiple()
->relationship('companies','company_name'),
After creating pushtopic in salesforce, how can I update the query?
ex: I need to add one more field to my query
Any help would be appreciated
In case if someone wants the solution
Go to Developer console -> Debug -> Open Execute Anonymous Window
Then type the below
PushTopic pt = new PushTopic(Id='', Query = 'select id, name from account');
update(pt);
execute the query
If you are using the 'workbench', you can update it by manually editing the query when you select it from a list (if there are some PushTopics already created or you can create one from right there).
You get two fields, namely, Name and Query after you select your PushTopic from the dropdown. You can edit the query right there :) .
Hope this helps when and if you are using workbench to run the PushTopics and you have logged in using the same credentials as of your 'org' (Developer Console, where you have created the PushTopic).
PushTopics are also stored in the pushtopic table and you can use soql to update them.
I am a beginner in MS Access and am currently stuck with a problem.
I have a database about movies and I'm currently creating a list of all the movies that I want to have sorted by popularity.
To determine the popularity of a movie I have a different table that has a history of what my customers have watched, every movie they have watched is a seperate entry in that table.
I have created a report that has 3 things, the title of the movie, the ID of the movie and a button to watch that movie. But I want to sort the report to show the movies with the most viewers first.
I have created this code in SQL Management Studio which works exactly like I want too:
SELECT [Film].[Titel], [Film].[Film_ID], COUNT([historie].[Film_ID]) as timesWatched
FROM [Film] INNER JOIN [historie] on [Film].[Film_ID] = [historie].[Film_ID]
GROUP BY [Film].[Titel], [Film].[Film_ID]
ORDER BY timesWatched DESC
I'm not that good with Access yet and have no idea how I can use this query to sort the report, I tried putting it in the row source (with everything on one line) in the report properties, which didn't work.
I hope someone has an idea on what to do, is it possible to use this query somewhere or should I use something else than a Report?
Thanks in advance for the answers!
If I'm not wrong..
First create the Query in ACCESS (Create tab -> query) There you will be able to create that query, save it, then go to your report and set its source to this query, the last step will be to set each textbox/label source to the query field, I mean if you have a textField in your report where you want to diplay "movieName", you must select data source from this text box and choose between all fields in your query (in this case, and following a good practice, let's say the field is called movieName too).
I want to show the database table e.g. account having attributes accid, accname, accbranch. I have created one DB class inwhich I am writing code to set ResultSet into List. How to do that? and How to show it on the JSP?
Take a look at this
I would like to find out if any and which database links are being used, for a schema, and in which tables. Is it possible via the data dictionary somehow?
Is this possible with the Oracle RDBMS?
I know the answer by Dougman is accepted and accurate. But here is some more information.
If the user is not a DBA user, it will not have access to DBA_DB_LINKS. Also, USER_DB_LINKS will display the db links created by the current user, so that won't list all the DB links that the user has access to.
You can use ALL_DB_LINKS to get the links that the user has access to.
select * from all_db_links;
This will show you any database links set up on the database:
select * from dba_db_links;
You would then have to search for any queries or objects using the db link by doing a text search of them for the link syntax <tablename>#<dblink name>
You can first edit all sql code of a schema:
ex:
SELECT DBMS_METADATA.GET_DDL(object_type, object_name, owner)
FROM all_OBJECTS
WHERE (OWNER = 'your schema name');
and then search in the result the pattern of the db_link, which looks like #dblink_name.