Passing Reference with PHP - reference

as you can see i am very new in PHP world.
I am able to show my Mysql table list but i want to add some link to show some further information but i couldnt get id reference on address bar.
on the below line something wrong buty i couldnt find it
echo .$row['name']."";
this is the address i get on address bar
http://test.com/new/details.php?ref=
as you can see i did not receive id , If i put ID manualy code works and shows details
I appreciate your help
Thanks

try
echo "<a href='details.php?ref=" .$row['id']. "'>" .$row['name']."</a>";

Related

Add rows in excel table with API Graph

I am trying to add 2 rows in an excel table whose file is located in a sharepoint site.
To get the details of the file - and double check that I have the correct id's - I do the following :
GET https://graph.microsoft.com/v1.0/drives/{drive-id}/list/items/{item-id} -> all ok, I see the details of the excel file (createdBy, ModifiedBy, etc..)
But when doing :
POST https://graph.microsoft.com/v1.0/drives/{drive-id}/list/items/{item-id}/workbook/tables/{table-name}/rows/add
I get the following error message : Resource not found for the segment 'workbook' I don't understand
Has someone any idea what I am doing wrong and could this error message mean ?
The documentation I base on this is here : https://learn.microsoft.com/en-us/graph/api/tablerowcollection-add
Thank you
Andreas
Well, the correct url is actually the following :
POST https://graph.microsoft.com/v1.0/drives/{drive-id}/list/items/{item-id}/driveitem/workbook/tables/{table-name}/rows/add
note the driveitem added in the url !
The way I got there is the following :
to get the drive ID do:
https://graph.microsoft.com/v1.0/sites/{hostname}.sharepoint.com:/sites/{SiteName}:/drives
Then the list of the items
https://graph.microsoft.com/v1.0s/drives/{drive-id}/list/items
and the id of the item you are looking for
https://graph.microsoft.com/v1.0/drives/{drive-id}/list/items/{item-id}

Search thread using by created and assigned username in Forum section Orchard CMS

Please check the attached images. I want to search the thread using by created username and assigned username. But i am getting the result only when I search using by assigned username. When i use the created username i am not getting the result.
Please help to resolve this issue. It is not happen in an Orchardpros.net site.
How can i do Orchardpros.net - 'My Tickets' concept. This is the one for my requirement.
enter image description here
enter image description here
You need to go to you admin panel then do this:
Settings > Search
Select the index you're working with
Tick the checkbox next to author
Click Save
Either wait a few minutes for the index to update itself or then go to:
Settings > Indexes
Find the index you're working with
Press rebuild
After that it should be included in your search results.

Internal ID of e-mail template in NetSuite

I am trying to send e-mail from netsuite using API function nlapiMergeRecord in suitelet.
But the problem is i am not being able to search the Internal ID of templates that i will be using.
Can anyone tell me how can i get Internal ID of an e-mail template?
Thanks in advance.
Here is the easiest way I have found.
First, make sure your preferences has show internal ID. To do this, go Home>Set Preferences>under the General Tab on the right make sure "Show Internal IDs" is checked.
If this is done, then go to Documents>Templates>Email Templates and it will show the internal ID in the list.
If you recently made the Template, a quick-tip is to sort by internal ID descending in the list and the most recent Template will be shown. If it isn't a new template, I use just good ole' Ctrl+F to search my list of Templates if I know it's name.
Please mark this answer as "correct" if it helped you do what you needed.

NameLookup does not pull Phone number

I have 2 fields that looks for username, the gets the email address and phone number from user's person document.
Creator_Email: #NameLookup([NoUpdate]; #UserName; "OfficePhoneNumber")
Creator_Ext: #NameLookup([NoUpdate]; #UserName; "OfficePhoneNumber")
The problem is there is one user reported that the extension did not pull out. It came out blank
I have checked on the person document and the phone number is there
the email address pull out correctly, but when I tested changing the first letter of first and last name to lower case (ie. Test.User#domain.com to test.user#domain.com), the field that pulls the email address still show up with Upper case.
I have tried to take the user.id and test it on a different PC and the problem persists.
Any idea why this happens? I know there are 2 address books set up in the company and that is not ideal but I have checked the 2 address books and make sure all the needed information are there.
The #NameLookup formula does a look up to a hidden view on the database, and sometimes you run into a situation where the index for that view isn't up-to-date. You can go to the database and press CTRL+SHIFT+F9 to rebuild all the views, or you can try to use the FORCEUPDATE flag in your formula.
I think you'll find that the #NameLookup call is finding people who have created entries for themselves in their personal address books. If those entries are incomplete, the lookups will fail to find the missing fields.
The #NameLookup will use the parameter...
Go to /File/Preferences/Location then is the current location find the Server Tab and check that you defined Domino Directory server (if empty user search on local)
Check also in the Mail tab, Recipient Name lookup that could "stop after first march" or exhaustively search ALL the names known on the client.
In #NameLookup you can also use [NoUpdate]:[Exhaustive]
be aware as mention before that view may be not up to date, that caching can occurs in the #NameLookup.
In place of this, I suggest to use:
#DbLookup("":"";YourServer:"names.nsf" ; "($VIMPeople)" ; #Name([ABBREVIATE] ;#UserName) ; "OfficePhoneNumber");

How do I copy specific text from a document in edit mode and add it to the subject line?

I'm far from an expert, but I've learned quite a little bit about using the Lotus #Formula language recently and have created some very useful buttons for myself. Unfortunately, I'm having trouble trying to put the finishing touch on one I recently created and no matter how much searching I do, I can't seem to find anything to point me in the right direction.
To be more specific, what I'm trying to do is forward a note that takes a piece of text from the body of the email and uses it in the subject line. The note that I'm forwarding could either be a memo or a document from a specific database. When I forward a document from the database, I can get the text I need by getting the value of a specific field before it forwards it by using #GetField. If I'm only forwarding directly from a document from the database, it works perfectly by first getting the value, which is good because once I open that new memo to forward it, that field is no longer there.
The problem is that if I'm forwarding someone else's email (someone who already forwarded a document from the database), I have no opportunity to first get the value I need because that field is already gone. The good news is that the value of the field I'm trying to get is listed in a table of the memo that I'm forwarding. Unfortunately, I can't figure out how to get that text highlighted and copied so I can have it pasted in the subject line. In my simple mind, I'm thinking I just need a way to "find" the static text that precedes the text I need to copy, move one space to the right, and highlight and copy everything from that point to the end of the cell.
Basically, I need a way to find and copy something from the body so I can use it in the subject line. The closest thing I could get to work is to move the cursor to the spot by using EditDown and EditRight commands. The problem with that method is that I have no way of knowing the correct number of lines to move down. If I were forwarding the original document, the following sort of works:
#Command( [EditGotoField]; "Body" ) ;
REM "The next line only works if the text is located exactly 33 lines down." ;
#Command( [EditDown]; "33" ) ;
#Command( [EditRight]; "29" ) ;
#Command( [EditDeselectAll] ) ;
REM "The next line only works if the text I need is three characters long." ;
#Command( [EditRight] ; "3" ) ;
#Command( [EditCopy] ) ;
#Command( [EditGotoField] ; "Subject" ) ;
#Command( [EditSelectAll]) ;
#Command( [EditInsertText] ; "The text I need is: " ) ;
#PostedCommand( [EditPaste] )
I say "sort of" because the part where it selects text only works if the text I need happens to be the same number of characters that I've specified in the code. If the text I need is longer, it won't get it all. If it's shorter, the cursor selects the next cell and then copies a bunch of unnecessary text. I need a way to make it only select to the end of the cell (i.e. as if hit 'Shift' + 'End').
I thought maybe I could call an agent to perform this piece, but I couldn't find anything helpful in my searches for LotusScript.
I also thought that maybe the email I'm forwarding might have some link back to the original document, but I'm unable to find anything. My thinking was that maybe it could find the original document, get the value I need and go back to the note.
Thanks for taking the time to read this. If anyone can help, I'd really appreciate it.
Suggest you take a look at #Text or #Abstract to grab the text from the body field of the memo, that'll leave you with a string to handle, you've mentioned you've some static text before the text you want so #middle may be your friend here. HTH.
Hi Mike, #Abstract will handle a maximum 64994 bytes which should be enough for an email. The field you want is actually called Body, so try
#Abstract([TextOnly]; 64000; ""; "Body")
I tried assigning this to a variable only to discover formula string variables are limited to 1700 characters so instead I used it directly in #Middle,
#Middle(#Abstract([TextOnly]; 64000; ""; "Body"); "YourFixedText1"; "YourFixedText2"))
I then wrapped an #Prompt around it for testing,
#Prompt([Ok];"Test Extract"; #Middle(#Abstract([TextOnly]; 64000; ""; "Body"); ""YourFixedText1""; "YourFixedText2"))
Once you're successfully extracting what you want use the formula to set the Subject field of your forwarded note.

Resources