Author Topic: make 'unique ID' of workspace (project) visible  (Read 6982 times)

Markus

  • Jr. Member
  • **
  • Posts: 72
    • View Profile
make 'unique ID' of workspace (project) visible
« on: March 10, 2011, 01:21:19 pm »
Feng office allows to search for projects/workspaces by their ID. Unfortunately you can't find it in the application.

Below you find a rough modification in the script to find the ID on the dashboard -> Workspace Information.

any feedback is welcome.

cheers
markus


Quote
ROOT/application/views/dashboard/widget_dashboard_info.php
insert at line 89
Code: [Select]
<?php 
?>

<tr><td><?php echo lang('unique id'?>:</td>
<td style="padding-left:10px"><?php 
echo $project->getUniqueObjectId();
 ?>
</td></tr>


supadoctor

  • Jr. Member
  • **
  • Posts: 99
    • View Profile
    • Email
Re: make 'unique ID' of workspace (project) visible
« Reply #1 on: March 11, 2011, 05:53:03 am »
Hmm... Code is simple but I can't  run it on my FO instance...
No errors and no any results :(

Markus

  • Jr. Member
  • **
  • Posts: 72
    • View Profile
Re: make 'unique ID' of workspace (project) visible
« Reply #2 on: March 14, 2011, 06:18:30 am »
I give you some more lines, what's above and below the insertion, so you can check the syntax in detail.

markus

Code: [Select]
[...]
$datetime = format_datetime($project->getUpdatedOn(), $date_format, logged_user()->getTimezone());
echo lang('user date', $project->getUpdatedByCardUrl(), $username, $datetime, clean($project->getUpdatedByDisplayName()));
}
?></td></tr>
<?php 
?>

<tr><td><?php echo lang('unique id'?>:</td>
<td style="padding-left:10px"><?php 
echo $project->getUniqueObjectId();
 ?>
</td></tr>
<?php ?>
<tr><td colspan="2">
<?php echo render_custom_properties($project); ?><br/>
</td></tr>
[...]

supadoctor

  • Jr. Member
  • **
  • Posts: 99
    • View Profile
    • Email
Re: make 'unique ID' of workspace (project) visible
« Reply #3 on: March 16, 2011, 05:08:30 am »
Yes, code and modification are correct. But I do not see any project id in dashboard. Sorry... May be I blind? If you don't mind pls attach a screenshot with marked project id.

Markus

  • Jr. Member
  • **
  • Posts: 72
    • View Profile
Re: make 'unique ID' of workspace (project) visible
« Reply #4 on: March 16, 2011, 06:54:27 am »
This is what I get

supadoctor

  • Jr. Member
  • **
  • Posts: 99
    • View Profile
    • Email
Re: make 'unique ID' of workspace (project) visible
« Reply #5 on: March 16, 2011, 10:05:59 am »
My fault... Just forget about config option of visibility this widget  ;D

Thanx!!!

Captain_FLAM

  • Freshman
  • *
  • Posts: 16
    • View Profile
Re: make 'unique ID' of workspace (project) visible
« Reply #6 on: July 18, 2011, 11:29:06 am »
By the way, i found a serious limitation about generating "unique id"

only 3 significant numbers are generated ...

to change this behaviour, i did this :

in -->  application\models\ApplicationDataObject.class.php , line ~ 283

Code: [Select]
<?php
......
function getUniqueObjectId()
{
//****    © Captain FLAM - 06/2011    ****//

$oid str_pad($this->getObjectId(), 6'0'STR_PAD_LEFT);

//****************************************//

return $this->objectTypeIdentifier $oid;
}
......
?>

« Last Edit: July 19, 2011, 11:00:23 am by Captain_FLAM »

donaldjack59

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: make 'unique ID' of workspace (project) visible
« Reply #7 on: February 03, 2012, 02:50:54 pm »
Feng office allows to search for projects/workspaces by their ID. Unfortunately you can't find it in the application.

Below you find a rough modification in the script to find the ID on the dashboard -> Workspace Information.