neha
July 6, 2024, 11:48am
1
i want the COmpany name should be like this dynamically based on the user’s company.instead of company i want the company name of user
NCP
July 6, 2024, 4:08pm
2
You have to develop the Custom HTML Block with some logic.
Reference:
Thanks for the reference @bahaou , tried with something new learning.
<table class="table table-bordered table-condensed" id="task_table"></table>
frappe.call({
method: "frappe.client.get_list",
args: {
doctype: "Task",
filters: {
status: ['In',["Open", "Overdue"]]
},
fields: ["name", "subject", "status", "project", "priority"],
},
callback: function (response) {
if (response.message) {
populateTaskTable(response.message);
}…
neha
July 9, 2024, 4:24am
3
but i want to implemet this heading in the 'create workspac’e same aligned place it is out side the workspace.so how to do?can i do in core?if yes!please share me the path
NCP
July 9, 2024, 6:39am
4
I have provided you the path, you have to add that code inside this, I have only set it from the inspect element, I have not tested it, so you have to add some logic.
setup_actions(page) {
let pages = page.public ? this.public_pages : this.private_pages;
let current_page = pages.filter((p) => p.title == page.name)[0];
if (!this.is_read_only) {
this.setup_customization_buttons(current_page);
return;
}
this.clear_page_actions();
this.page.set_secondary_action(
__("Edit"),
async () => {
if (!this.editor || !this.editor.readOnly) return;
this.is_read_only = false;
this.toggle_hidden_workspaces(true);
await this.editor.readOnly.toggle();
this.editor.isReady.then(() => {
this.body.addClass("edit-mode");
This file has been truncated. show original
1 Like